mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Merge branch 'master' of github.com:domify/registry
This commit is contained in:
commit
c2155d1279
1 changed files with 12 additions and 0 deletions
|
@ -132,6 +132,8 @@ task deploy: :environment do
|
|||
invoke :'rails:assets_precompile'
|
||||
to :launch do
|
||||
invoke :restart
|
||||
invoke :'delayed_job:stop'
|
||||
invoke :'delayed_job:start'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -157,6 +159,16 @@ task load_commit_hash: :environment do
|
|||
)
|
||||
end
|
||||
|
||||
namespace :delayed_job do
|
||||
task :stop do
|
||||
queue "cd #{deploy_to}/current; bin/delayed_job stop"
|
||||
end
|
||||
|
||||
task :start do
|
||||
queue "cd #{deploy_to}/current; bin/delayed_job start"
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Restart Passenger application'
|
||||
task restart: :environment do
|
||||
queue "mkdir -p #{deploy_to}/current/tmp; touch #{deploy_to}/current/tmp/restart.txt"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue