DONE: consolidate to use .env instead of .env.prod
This commit is contained in:
@@ -71,19 +71,11 @@ jobs:
|
||||
|
||||
cd "${DEPLOY_DIR}"
|
||||
|
||||
if [ ! -f .env.production ]; then
|
||||
echo "ERROR: ${DEPLOY_DIR}/.env.production is missing on the server"
|
||||
if [ ! -f .env ]; then
|
||||
echo "ERROR: ${DEPLOY_DIR}/.env is missing on the server"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Optional compose-level env (REDIS_PASSWORD, API_PORT, FE_PORT, etc.)
|
||||
if [ -f .env ]; then
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
source .env
|
||||
set +a
|
||||
fi
|
||||
|
||||
export IMAGE_TAG
|
||||
export NGINX_CONF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user