Knowledgebase: Ruby on Rails
Restart the Ruby on Rails Application
Posted by CTX Admin on 05 January 2015 11:35 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.

(0 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