add .env generation from bws, handle build services in deploy
Provision server / provision (push) Successful in 6s

- configure.sh generates .env files from .env.keys + bws
- deploy.sh detects build: services and runs docker compose build
- new-service.sh prints .env.keys instructions
- clean up .gitignore
This commit is contained in:
2026-03-19 12:11:46 -04:00
parent 7e35042b71
commit 3a8fb09bcf
4 changed files with 50 additions and 7 deletions
+7 -3
View File
@@ -48,9 +48,13 @@ APP="${CMD#deploy-}"
cd /opt/hantim
git pull
cd "docker/$APP"
if ! docker compose pull; then
echo "Image not yet available for $APP — skipping. It will deploy when the app repo is first pushed."
exit 0
if grep -q '^\s*build:' compose.yml 2>/dev/null; then
docker compose build
else
if ! docker compose pull; then
echo "Image not yet available for $APP — skipping. It will deploy when the app repo is first pushed."
exit 0
fi
fi
if [ "$APP" = "nginx" ]; then