Update deployment scripts to specify required environment variables in .env file and docker-compose
All checks were successful
Deploy Development / deploy (push) Successful in 2m11s
All checks were successful
Deploy Development / deploy (push) Successful in 2m11s
This commit is contained in:
@@ -79,7 +79,8 @@ jobs:
|
||||
echo "🔍 Checking .env file"
|
||||
if [ ! -f .env ]; then
|
||||
echo "❌ .env file not found at $DEPLOY_DIR/.env"
|
||||
echo "Please create it first. See DEPLOYMENT-SETUP.md"
|
||||
echo "Please create it first with required variables:"
|
||||
echo " - DB_*, IMAGES_DIRECTORY, PRODUCTION_PRIVATE_SERVER"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
@@ -50,7 +50,8 @@ jobs:
|
||||
cp docker-compose.yml \$DEPLOY_DIR/
|
||||
cd \$DEPLOY_DIR
|
||||
|
||||
# .env file should already exist on server with all secrets
|
||||
# .env file should already exist on server with all required variables
|
||||
# Required: DB_*, IMAGES_DIRECTORY, PRODUCTION_PRIVATE_SERVER
|
||||
# If it doesn't exist, deployment will fail (this is intentional for security)
|
||||
|
||||
docker compose down || true
|
||||
|
||||
Reference in New Issue
Block a user