Sha256: 1199a34b27f135cde95f2eee25d26e119324823287c6eaf8ae87d29c8ddc0465
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 #{current_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.3 | lib/capistrano/foreman.rb |