Load env automatically

This commit is contained in:
Martin Lensment 2015-02-03 14:17:14 +02:00
parent b0b9dae596
commit 7a2df77b53

View file

@ -160,11 +160,11 @@ task load_commit_hash: :environment do
end end
namespace :delayed_job do namespace :delayed_job do
task :stop do task stop: :environment do
queue "cd #{deploy_to}/current; bin/delayed_job stop" queue "cd #{deploy_to}/current; bin/delayed_job stop"
end end
task :start do task start: :environment do
queue "cd #{deploy_to}/current; bin/delayed_job start" queue "cd #{deploy_to}/current; bin/delayed_job start"
end end
end end