mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Stop delayed job before deploy
This commit is contained in:
parent
de161537b5
commit
2785ff23ea
1 changed files with 6 additions and 5 deletions
|
@ -130,6 +130,10 @@ task deploy: :environment do
|
||||||
deploy do
|
deploy do
|
||||||
# Put things that will set up an empty directory into a fully set-up
|
# Put things that will set up an empty directory into a fully set-up
|
||||||
# instance of your project.
|
# instance of your project.
|
||||||
|
to :prepare do
|
||||||
|
invoke :'delayed_job:stop' if delayed_job
|
||||||
|
end
|
||||||
|
|
||||||
invoke :'git:clone'
|
invoke :'git:clone'
|
||||||
invoke :load_commit_hash
|
invoke :load_commit_hash
|
||||||
invoke :'deploy:link_shared_paths'
|
invoke :'deploy:link_shared_paths'
|
||||||
|
@ -138,10 +142,7 @@ task deploy: :environment do
|
||||||
invoke :'rails:assets_precompile'
|
invoke :'rails:assets_precompile'
|
||||||
to :launch do
|
to :launch do
|
||||||
invoke :restart
|
invoke :restart
|
||||||
if delayed_job
|
invoke :'delayed_job:start' if delayed_job
|
||||||
invoke :'delayed_job:stop'
|
|
||||||
invoke :'delayed_job:start'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue