scripts/deploy.sh pushes the current branch to origin, ssh's into the prod box (neuronetz@cloud.neuronetz.ai:/home/neuronetz/docker-public/ neuro-psyc by default — overridable via env vars), clones-or-pulls, ensures the external 'backend' docker network exists, runs docker compose up -d --build (+ --profile gpu if PSYC_PROD_GPU=1), and then verifies the cockpit is healthy both on prod-internal :8767 and at the public URL — so the script ends knowing whether the page is up. Refuses to touch prod's .env (warns + copies .env.example if missing, so you can edit it manually). Never transfers data/ or adapters (gitignored; prod fetches its own corpus). Color output, idempotent, safe to re-run. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
6.4 KiB
Executable File
6.4 KiB
Executable File