Skip to content

Instantly share code, notes, and snippets.

@onsails
Created April 13, 2010 00:59
Show Gist options
  • Save onsails/364200 to your computer and use it in GitHub Desktop.
Save onsails/364200 to your computer and use it in GitHub Desktop.
namespace :daemon do
task :restart do
run <<-CMD
cd #{latest_release};
RAILS_ENV=production script/cron stop;
RAILS_ENV=production script/cron start;
CMD
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment