Use visible atc.env instead of hidden .env for configuration
This commit is contained in:
+9
-3
@@ -1,7 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Deploy Command Center stack on VM304
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
[ -f .env ] || { echo "Create .env from config/command-center/.env.example"; exit 1; }
|
||||
docker compose --env-file .env up -d --build
|
||||
if [ ! -f atc.env ]; then
|
||||
echo "Missing atc.env — copy from config/command-center/atc.env.example"
|
||||
cp config/command-center/atc.env.example atc.env
|
||||
echo "Edit atc.env then re-run ./scripts/deploy.sh"
|
||||
exit 1
|
||||
fi
|
||||
ln -sf "$(pwd)/atc.env" .env
|
||||
docker compose --env-file atc.env up -d --build
|
||||
echo "OK — http://10.0.21.33/"
|
||||
echo "Env file: $(pwd)/atc.env"
|
||||
|
||||
Reference in New Issue
Block a user