auto-save 2026-05-15 11:51 (~3)

This commit is contained in:
2026-05-15 11:51:33 +08:00
parent 23b1def0a8
commit de3cef4b72
3 changed files with 10 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ start_api() {
echo "missing api/.venv/bin/uvicorn" >&2
exit 1
fi
launchctl bootout "$LAUNCHD_DOMAIN" "$API_LABEL" >/dev/null 2>&1 || true
launchctl bootout "$LAUNCHD_DOMAIN/$API_LABEL" >/dev/null 2>&1 || true
launchctl bootstrap "$LAUNCHD_DOMAIN" "$LAUNCHD_DIR/$API_LABEL.plist"
launchctl kickstart -k "$LAUNCHD_DOMAIN/$API_LABEL"
echo "api started on 4291 via launchd, log: $LOG_DIR/api.launchd.log"
@@ -42,7 +42,7 @@ start_web() {
echo "missing pnpm in PATH" >&2
exit 1
fi
launchctl bootout "$LAUNCHD_DOMAIN" "$WEB_LABEL" >/dev/null 2>&1 || true
launchctl bootout "$LAUNCHD_DOMAIN/$WEB_LABEL" >/dev/null 2>&1 || true
launchctl bootstrap "$LAUNCHD_DOMAIN" "$LAUNCHD_DIR/$WEB_LABEL.plist"
launchctl kickstart -k "$LAUNCHD_DOMAIN/$WEB_LABEL"
echo "web started on 4290 via launchd, log: $LOG_DIR/web.launchd.log"