Knowledge Base

Restart the Ruby On Rails Application

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.

Did you find this article helpful?

* Your feedback is too short