Skip to content

Instantly share code, notes, and snippets.

@rafapolo
Last active December 13, 2015 18:19
Show Gist options
  • Save rafapolo/4954954 to your computer and use it in GitHub Desktop.
Save rafapolo/4954954 to your computer and use it in GitHub Desktop.
deploy sample
#...
namespace :deploy do
desc "restart passenger"
task :restart do
passenger::restart
end
end
namespace :passenger do
desc "Restart dispatchers"
task :restart do
#run "mv #{current_path}/db/webdoc.dev.sqlite3 #{current_path}/db/webdoc.sqlite3"
run "cd #{current_path}; bundle install --path=vendor/bundle"
run "cd #{current_path}; mv .htaccess public"
run "touch #{current_path}/tmp/restart.txt"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment