Reaper file for Phusion Passenger
Posted by admin
Thought I had posted this last year but can’t seem to find it, so here it is again:
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
# Restart Applicable Passenger Instance
filename = "#{RAILS_ROOT}/tmp/restart.txt"
File.open(filename, 'w') {|f| f.write('restart passenger') }Save this file as: ./scripts/process/reaper, then deploy and it will restart your passenger instance.
