16

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?

Thom Wiggers
  • 6,938
  • 1
  • 39
  • 65
ywenbo
  • 3,051
  • 6
  • 31
  • 46
  • 2
    This is the first result when I search for "touch tmp/restart.txt". Is this a passenger-specific way of restarting your server? The command is included in the `bin/setup` script generated by Rails 4, but it seems like a very odd thing to include in the script. – Dennis Mar 25 '15 at 21:57
  • This is a [Phusion Passenger](https://www.phusionpassenger.com/library/admin/apache/restart_app.html#restart-txt) specific way. – cbr Sep 16 '22 at 12:11

1 Answers1

37

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
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158