fix deploy: use compose up instead of down+up, fetch secrets individually
Provision server / provision (push) Successful in 11s

- docker compose up -d --remove-orphans instead of down then up
- configure.sh delegates all service deployment to deploy.sh
- deploy.sh generates .env from bws before starting services
- remove 2>/dev/null from bws calls so errors are visible
This commit is contained in:
2026-03-19 12:28:49 -04:00
parent 82582028a2
commit 76d01c66d6
4 changed files with 35 additions and 72 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export BWS_ACCESS_TOKEN
# --- Fetch secrets from Bitwarden Secrets Manager ---
echo "==> Fetching secrets from Bitwarden Secrets Manager..."
GITEA_TOKEN=$(bws secret list 2>/dev/null | jq -r '.[] | select(.key == "hantim-new-app-script") | .value')
GITEA_TOKEN=$(bws secret list | jq -r '.[] | select(.key == "hantim-new-app-script") | .value')
if [ -z "$GITEA_TOKEN" ]; then
echo "ERROR: Secret 'hantim-new-app-script' not found in Bitwarden Secrets Manager."
exit 1