Other Pages

Expand All

Running Your Application Locally


  • Let's fire up the application locally


Step 1

Type this in the terminal:

rails server

Step 2

Point your web browser to http://localhost:3000

For Cloud9: Click on Preview > Preview Running application

See your web app actually running! It should look like this:

Screenshot of a Ruby on Rails default home page

Step 3

When at the terminal where Rails server is running, you can always type Control-C to stop it. You can do this now.

Expected result:


rails server ran your application locally just like Heroku will be running it on their servers.

This provides a very simple means to see your changes before you commit and push them to Heroku.

Control-C is a way of closing or cancelling terminal programs. Since rails server will run forever, you need to interrupt it with Control-C.

Next Step:

Back to Creating A Rails Application