diff --git a/config/deploy.rb b/config/deploy.rb index 3064de1e..69a1b1a6 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -61,17 +61,18 @@ namespace :deploy do task :restart do on roles(:app), in: :sequence, wait: 5 do # Your restart mechanism here, for example: - within release_path do - #execute :rake, 'cache:clear', as: 'www-data' - #with rails_env: fetch(:rails_env) do - #execute :rake, 'dedigest_assets', as: 'www-data' - #end - end - #execute :chown, "-R www-data:www-data", release_path - #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 :touch, release_path.join('tmp/restart.txt') - execute :monit, :restart, 'puma_mozo.bar_production' + within release_path do + #execute :rake, 'cache:clear', as: 'www-data' + #with rails_env: fetch(:rails_env) do + #execute :rake, 'dedigest_assets', as: 'www-data' + #end + end + #execute :chown, "-R www-data:www-data", release_path + #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 :touch, release_path.join('tmp/restart.txt') + #execute :monit, :restart, 'puma_mozo.bar_production' + execute 'systemctl restart mozo.bar' end end