优化部署流程
This commit is contained in:
1 parent
16e5db3b26
commit
2ecc72d027
20 files changed
+597
-116
No files matched your search
+2
-10
@@ -1,12 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Initialize dependencies via GitHub HTTPS with self-hosted HTTPS fallback, then build Docker Compose.
|
||||
set -eu
|
||||
PROJECT_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
python3 "$PROJECT_ROOT/scripts/init-deps.py"
|
||||
if [ ! -f "$PROJECT_ROOT/.env" ]; then
|
||||
printf '%s\n' 'Create and configure .env first; see docs/deployment.md.' >&2
|
||||
exit 1
|
||||
fi
|
||||
python3 "$PROJECT_ROOT/scripts/prepare-deploy.py"
|
||||
docker compose --env-file "$PROJECT_ROOT/.env" -f "$PROJECT_ROOT/deploy/compose.yaml" up -d --no-build
|
||||
printf '%s\n' 'When the database is ready, run the documented db-init command once.'
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
exec python3 "$SCRIPT_DIR/deployment.py" deploy "$@"
|
||||
Reference in new issue
Block a user