first commit
This commit is contained in:
15
start_prod.sh
Executable file
15
start_prod.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "${ROOT_DIR}"
|
||||
|
||||
if [[ ! -f .env ]] && [[ -f .env.example ]]; then
|
||||
cp .env.example .env
|
||||
fi
|
||||
|
||||
if grep -q '^DEFAULT_ADMIN_PASSWORD=admin$' .env 2>/dev/null; then
|
||||
echo "Warning: DEFAULT_ADMIN_PASSWORD is still set to admin in .env"
|
||||
fi
|
||||
|
||||
docker compose up --build
|
||||
Reference in New Issue
Block a user