Capistrano + NGINX Passenger Restart Rails App Capistrano + NGINX Passenger Restart Rails App nginx nginx

Capistrano + NGINX Passenger Restart Rails App


I think adding this task to your deploy.rb file should do

namespace :deploy do  task :restart do    run "touch #{current_path}/tmp/restart.txt"  endend

Basically this will run the touch tmp/restart.txt in the rails root directory which will restart passenger