deploy-scripts/install.sh |
(Re)deploys the full stack on a target box (prod EC2 mapp-instance or an edge box) from its compose dir. Brings the stack up with docker compose up -d; config_app runs alembic upgrade head on boot. Bumps SESSIONS_VALID_SINCE so existing frontend sessions are logged out, then verifies the alembic version, table/row counts, and /config/version + /icd/ endpoints. |
--keep-db (default — apply only new migrations, preserve rows) · --fresh-db (WIPE Postgres first, destructive, needs wipe <db> confirm or --yes) · --pull (force-refresh all images) · --dir/-f · --no-verify · env TAG, COMPOSE_PROJECT_NAME, POSTGRES_USER/DB |
scripts/install-local.sh |
Standalone single-host installer. Self-contained — embeds docker-compose.local.yml, nginx-local.conf, and the .env template, so you copy just this one file to a host (no repo clone). Checks prereqs + port, generates random DB password + JWT secret on first run (.env chmod 600), pulls all images from Docker Hub, brings the stack up, and prints the access URLs. React FE uses window.location.origin, so no rebuild to retarget. |
arg <install-dir> (default /opt/dori/merged-app) · env TAG, HOST_PORT (default 80), RESET=1 (wipe pgdata first) · needs docker login as doridocker (images are private) |
scripts/install-pre-push-hook.sh |
Opt-in git hook installer. Writes .git/hooks/pre-push to run scripts/test-remote.sh against the EC2 host before every git push. The hook is not committed (only the installer is); rerun to update. Bypass a single push with git push --no-verify. |
env TEST_BASE_URL (required — the EC2 host, e.g. http://54.152.164.68) |