build: restart sunrise PM2 process after build
This commit is contained in:
@@ -13,6 +13,7 @@ sunrise_group=$(id -gn sunrise)
|
||||
git pull --ff-only
|
||||
npm run build
|
||||
install -d -o sunrise -g "$sunrise_group" -m 755 dist/threads-captures
|
||||
pm2 restart sunrise
|
||||
systemctl restart sunrise-threads.service
|
||||
|
||||
echo 'Build complete; capture permissions restored and sunrise-threads.service restarted.'
|
||||
echo 'Build complete; capture permissions restored, PM2 sunrise and sunrise-threads.service restarted.'
|
||||
|
||||
Reference in New Issue
Block a user