Skip to content

Commit ca2ddf4

Browse files
committed
ci: use sudo to restart systemd service
1 parent fc69ec3 commit ca2ddf4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
# Run migrations
4040
bun run prisma-deploy
4141
42-
# Restart service
43-
systemctl restart vicinae
42+
sudo systemctl restart vicinae
4443
4544
# Wait for service to be healthy
4645
echo "Waiting for service to start..."
4746
sleep 5
4847
4948
# Verify service is running
50-
systemctl is-active --quiet vicinae && echo "✅ Service is running" || echo "❌ Service failed to start"
49+
sudo systemctl is-active --quiet vicinae && echo "✅ Service is running" || echo "❌ Service failed to start"
5150
5251
echo "Deployment completed successfully!"

0 commit comments

Comments
 (0)