This commit is contained in:
Finley Ghosh 2025-11-23 09:29:21 +11:00
parent 477f9c39d6
commit 40560f17a5

View file

@ -41,18 +41,14 @@ ssh $SERVER \
cd "$PROD_DIR"
fi
# Create .env.prod file for docker-compose if it doesn't exist
# Create .env.prod file for docker-compose
COMPOSE_ENV_PATH="/home/cmc/$PROD_DIR/.env.prod"
if [ ! -f "$COMPOSE_ENV_PATH" ]; then
echo "Creating .env.prod file for docker-compose..."
cat > "$COMPOSE_ENV_PATH" <<'COMPOSEENVEOF'
echo "(Re)creating .env.prod file for docker-compose..."
cat > "$COMPOSE_ENV_PATH" <<'COMPOSEENVEOF'
# SMTP Configuration for postfix relay
SMTP_USERNAME=sales
SMTP_PASSWORD=S%s'mMZ})MGsg$k!5N|mPSQ>
COMPOSEENVEOF
else
echo ".env.prod already exists, skipping creation..."
fi
# Create .env file for go-app if it doesn't exist
ENV_PATH="/home/cmc/$PROD_DIR/go-app/.env"