11. Rails server - max-borisov/ihub-bookshelf GitHub Wiki
We have made all preparations before open a front page.
But there is one more thing we need to do. We need a web server to get requests from a browser and send responses back.
Rails is shipped with default web server called WEBrick. It's quite good for development and test environments.
To start the server open terminal window(do not close it after WEBrick is up and running) and type the following:
$ rails server -p 4000
What you will get:
-p parameter repesents a port the WEBrick is running on. You can set any other value. The default fort is 3000.
Now you can open a browser to go url
http://localhost:4000