ci: stop shipping unit file in deploy — unit is host config, not CI artifact
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
# Expects in ${APP_HOME}/staging/:
|
||||
# deepdrft-api.tar.gz -- published self-contained linux-x64 binary tree
|
||||
# deepdrft-migrations-bundle -- self-contained EF bundle (pre-built in CI)
|
||||
# deepdrftapi.service -- systemd unit file (optional)
|
||||
#
|
||||
# Migrations are applied BEFORE the service restarts via the EF bundle binary.
|
||||
# The bundle covers DeepDrftContext (track metadata DB) only.
|
||||
@@ -94,15 +93,6 @@ if [[ -d "${APPROOT}/environment" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# ── Install systemd unit file (if present in staging) ─────────────────────
|
||||
if [[ -f "${STAGING}/deepdrftapi.service" ]]; then
|
||||
mkdir -p "${APP_HOME}/.config/systemd/user"
|
||||
cp "${STAGING}/deepdrftapi.service" "${APP_HOME}/.config/systemd/user/deepdrftapi.service"
|
||||
rm -f "${STAGING}/deepdrftapi.service"
|
||||
systemctl --user daemon-reload
|
||||
echo "[deploy-api] systemd unit file installed"
|
||||
fi
|
||||
|
||||
# ── Enable and restart service ─────────────────────────────────────────────
|
||||
systemctl --user enable deepdrftapi.service
|
||||
systemctl --user restart deepdrftapi.service
|
||||
|
||||
Reference in New Issue
Block a user