Rename all user-facing references (UI wordmark Sift+lode, titles, app name, legal pages, onboarding wizard, emails, README/docs) and infra paths (/srv/subfeed -> /srv/siftlode, image tag, deploy script, backup filenames). Internal identifiers kept on purpose: Postgres user/db "subfeed", logger namespace, localStorage keys, and the subfeed_pgdata volume (renaming would orphan the migrated production data).
20 lines
663 B
Bash
Executable file
20 lines
663 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Roll out the latest main branch to the public the VPS instance.
|
|
#
|
|
# Layout on the VPS:
|
|
# /srv/siftlode/src git clone of this repo (build context + compose file)
|
|
# /srv/siftlode/.env secrets, mode 0600 (never in git)
|
|
#
|
|
# Build runs on the host Docker daemon, so it isn't constrained by the CI runner's memory.
|
|
set -euo pipefail
|
|
|
|
ROOT=/srv/siftlode
|
|
cd "$ROOT/src"
|
|
|
|
git fetch --quiet origin
|
|
git checkout --quiet main
|
|
git pull --ff-only --quiet
|
|
|
|
docker compose -f docker-compose.prod.yml --env-file "$ROOT/.env" up -d --build
|
|
docker image prune -f >/dev/null || true
|
|
docker compose -f docker-compose.prod.yml --env-file "$ROOT/.env" ps
|