Knowledgebase: Ruby On Rails
Restart the Ruby On Rails Application
Posted by on 14 July 2012 04:40 AM

Deploying a new version of a Ruby on Rails application is as simple as re-uploading the application files, and restarting the application.

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.

For example, to restart our example MyCook application, we type this in the command line:

touch /home/username/myapp/tmp/restart.txt


Depending on the version of Passenger installed on the server, restart.txt is not automatically deleted. If a newer version is installed on the server, Phusion Passenger checks whether the timestamp of this file has changed in order to determine whether the application should be restarted.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion
ERROR: This domain name (kb.asmallorange.com), does not match the domain name in the license key file help.asmallorange.com.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com