try the new deploy

This commit is contained in:
2025-09-20 17:40:54 -05:00
parent 0e051b1f93
commit a3b652500c
+12 -11
View File
@@ -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