There is no tmp/restart.txt file in Rails app

ywenbo picture ywenbo · Aug 21, 2011 · Viewed 13.9k times · Source

I use Passenger to start my Rails app, but after I started Nginx, Rails app works fine, but I can't find any restart.txt file under tmp dir.

Is it to be created automatically by Passenger or manual? If automatically why doesn't it exist?

Answer

Maurício Linhares picture Maurício Linhares · Aug 21, 2011

You have to create it yourself when you want the application to restart. To do that run in a command line:

touch tmp/restart.txt