Last active
December 13, 2015 18:19
-
-
Save rafapolo/4954954 to your computer and use it in GitHub Desktop.
deploy sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #... | |
| 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