try the new deploy
This commit is contained in:
+12
-11
@@ -61,17 +61,18 @@ namespace :deploy do
|
|||||||
task :restart do
|
task :restart do
|
||||||
on roles(:app), in: :sequence, wait: 5 do
|
on roles(:app), in: :sequence, wait: 5 do
|
||||||
# Your restart mechanism here, for example:
|
# Your restart mechanism here, for example:
|
||||||
within release_path do
|
within release_path do
|
||||||
#execute :rake, 'cache:clear', as: 'www-data'
|
#execute :rake, 'cache:clear', as: 'www-data'
|
||||||
#with rails_env: fetch(:rails_env) do
|
#with rails_env: fetch(:rails_env) do
|
||||||
#execute :rake, 'dedigest_assets', as: 'www-data'
|
#execute :rake, 'dedigest_assets', as: 'www-data'
|
||||||
#end
|
#end
|
||||||
end
|
end
|
||||||
#execute :chown, "-R www-data:www-data", release_path
|
#execute :chown, "-R www-data:www-data", release_path
|
||||||
#execute :chown, "-R www-data:www-data", release_path.join('public/assets/')
|
#execute :chown, "-R www-data:www-data", release_path.join('public/assets/')
|
||||||
#execute :kill, capture("lsof -i:9022 -t") # kill counters, will reboot itself
|
#execute :kill, capture("lsof -i:9022 -t") # kill counters, will reboot itself
|
||||||
execute :touch, release_path.join('tmp/restart.txt')
|
execute :touch, release_path.join('tmp/restart.txt')
|
||||||
execute :monit, :restart, 'puma_mozo.bar_production'
|
#execute :monit, :restart, 'puma_mozo.bar_production'
|
||||||
|
execute 'systemctl restart mozo.bar'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user