Sha256: f9bf7ead72075c1b6c0624988a3ab508ba15d0b746b30ad4f7e2dd8fa2a38769
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
namespace :delayed_job do desc "Setup delayed job" desc "Setup delayed configuration for this application" task :setup, roles: :web do template "delayed_job_init.erb", "/tmp/delayed" run "#{sudo} mv /tmp/delayed /etc/init.d/#{application}_delayed" run "#{sudo} chmod +x /etc/init.d/#{application}_delayed" run "#{sudo} update-rc.d #{application}_delayed defaults" end # after "deploy:setup", "nginx:setup" %w[start stop reindex].each do |command| desc "#{command} delayed" task command, roles: :web do run "/etc/init.d/#{application}_delayed #{command}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pixelforce_cms-0.9.9.9 | lib/generators/pixelforce_cms/templates/recipes/delayed_job.rb |
pixelforce_cms-0.9.9.8 | lib/generators/pixelforce_cms/templates/recipes/delayed_job.rb |