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 | |
# To avoid having to add a password for sudo, visudo and add | |
# deployusername ALL=(ALL) NOPASSWD: /etc/init.d/unicorn reload | |
task :start do | |
sudo "/etc/init.d/unicorn start" | |
end | |
task :stop do | |
sudo "/etc/init.d/unicorn stop" |
NewerOlder