fix: use systemctl restart to pick up newly built code on VM boot

This commit is contained in:
Adam Weidman
2026-03-04 09:27:51 -05:00
parent 1b313d6475
commit 6d120edaf4
+3 -3
View File
@@ -160,12 +160,12 @@ StandardError=journal
WantedBy=multi-user.target
EOF
# Start both services
# Restart both services (restart, not start — pick up newly built code)
systemctl daemon-reload
systemctl enable chat-bridge forever-agent
systemctl start chat-bridge
systemctl restart chat-bridge
sleep 2
systemctl start forever-agent
systemctl restart forever-agent
echo "=== Chat bridge started on port 8081 ==="
echo "=== Forever agent started in screen session ==="