deploy restart streaming too

This commit is contained in:
Torsten 2023-11-29 19:03:01 +02:00
parent e6acd179b4
commit 91c7fb817c
1 changed files with 6 additions and 4 deletions

View File

@ -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