Files

13 lines
524 B
Bash

#!/usr/bin/env bash
set -euo pipefail
repo_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
env_file=${MERCHANTFLOW_ENV_FILE:-/opt/merchantflow/production.env}
if [[ ! -r "$env_file" ]]; then
echo "Missing production configuration: $env_file (run deploy/init-env.sh first)" >&2
exit 1
fi
# Use an explicit file so the local development .env is never loaded by Compose.
exec docker compose --project-name "${MERCHANTFLOW_PROJECT:-merchantflow}" \
--env-file "$env_file" -f "$repo_dir/compose.production.yaml" "$@"