/ Published in: Rails

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
namespace :deploy do desc "Restarting Passenger through restart.txt file" task :restart, :roles => :app, :except => { :no_release => true } do run "touch #{current_path}/tmp/restart.txt" end # Remove unused start and stop tasks [:start, :stop].each do |t| desc "#{t} task is a no-op with Passenger" task t, :roles => :app do ; end end end
Comments
