Auto git pull on restart

Discards any local package-lock.json drift (cross-platform regeneration)
then pulls latest from GitHub before setup.sh runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmert
2026-08-12 09:04:28 -04:00
parent 9013dc4fc4
commit edc5f3dae1
+5
View File
@@ -21,5 +21,10 @@ stop_pid_file() {
stop_pid_file "$ROOT_DIR/.api.pid" "API server"
stop_pid_file "$ROOT_DIR/.vite.pid" "Vite server"
echo "Pulling latest changes from GitHub..."
cd "$ROOT_DIR"
git checkout -- package-lock.json 2>/dev/null || true
git pull
echo "Restarting via setup.sh..."
exec "$ROOT_DIR/setup.sh"