Sha256: e7e4b779f3a07fc36a63a2367697fa265a490ef8b3c212a01f976a2e0bca2e56
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do |configuration| namespace :foreman do desc "Export the Procfile to Ubuntu's upstart scripts" task :export, roles: :app do run "cd #{release_path} && sudo bundle exec foreman export upstart /etc/init -a sites/#{application} -u #{user} -l #{shared_path}/log" end desc "Start the application services" task :start, roles: :app do sudo "service sites/#{application} start" end desc "Stop the application services" task :stop, roles: :app do sudo "service sites/#{application} stop" end desc "Restart the application services" task :restart, roles: :app do run "sudo service sites/#{application} start || sudo service sites/#{application} restart" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-foreman-0.0.2 | lib/capistrano/foreman.rb |