diff --git a/config/deploy.rb b/config/deploy.rb index 8abf229f2..49c8e223e 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -64,7 +64,7 @@ task :deploy do in_path(fetch(:current_path)) do invoke :'passenger:restart' end - invoke :'systemd:restart_sidekiq' + invoke :'systemd:restart_services' end end @@ -74,11 +74,13 @@ end namespace :systemd do - desc "Restart sidekiq" - task :restart_sidekiq do + desc "Restart sidekiq and node" + task :restart_services do command %{ echo "-----> Restart sidekiq" #{echo_cmd %[systemctl --user restart mastodon-sidekiq.service]} + echo "-----> Restart node" + #{echo_cmd %[systemctl --user restart mastodon-streaming.service]} } end end @@ -87,7 +89,7 @@ namespace :yarn do task :install do command %{ echo "-----> Install yarn" - #{echo_cmd %[yarn install]} + #{echo_cmd %[yarn install --pure-lockfile]} } end end