I'm following the instructions here http://railsinstaller.org/mac to get up and running with Rails on a Mac running OS X 10.8.2
At step 8 I'm asked to restart Rails server but how?
I'm assuming via a command line, but from within the already open ruby terminal window or a new one?
For Rails 5.0 and above, you can use this command Show activity on this post. Use ctrl+c to shutdown your Webrick Server.
You can restart the application by creating or modifying the file tmp/restart. txt in the Rails application's root folder. Passenger will automatically restart the application during the next request. Depending on the version of Passenger installed on the server, restart.
It says 'To stop, click Ctrl+c '.
Press Ctrl+C
When you start the server it mentions this in the startup text.
Now in rails 5 you can do:
rails restart
The output of rails --tasks
:
Restart app by touching tmp/restart.txt
I think that is usefully if you run rails as a demon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With