Other Pages

running_your_application_locally.step

goals do
  goal "Let's fire up the application locally"
end


steps do
  step do
    console "rails server"
  end
  step do
    text "Point your web browser to "
    url "http://localhost:3000" 
    p "See your web app actually running!"
  end

  step do
    message "When at the terminal with your running rails server, type **Control-C** to stop rails server. You can do this now."
    result <<-STOPPING_RAILS_SERVER
^C[2012-03-31 08:33:11] INFO  going to shutdown ...
[2012-03-31 08:33:11] INFO  WEBrick::HTTPServer#start done.
Exiting
    STOPPING_RAILS_SERVER
  end
end

explanation do
  message "`rails server` ran your application locally just like Heroku will be running it on their servers."
  message "This provides a very simple means to see your changes before you commit and push them to Heroku."
  message "Control-C is a way of closing or cancelling terminal programs. Since rails server runs forever, you need to interrupt it with Control-C."
end

next_step "creating_a_migration"