Something went wrong. Try again.
The Cavu Reader
Something went wrong. Try again.
123456789101112131415#!/bin/sh# Boot under Litestream when backups are configured: restore the DB from# the replica if the volume is fresh (replaced machine or volume), then# run the server with continuous replication. Without BACKUP_* secrets# (dev, plain docker run) the server starts bare.set -e
if [ -n "$BACKUP_BUCKET" ]; then litestream restore -if-db-not-exists -if-replica-exists "$DATABASE_PATH" exec litestream replicate -exec "node server.mjs"fi
echo "[litestream] BACKUP_BUCKET not set; running without replication"exec node server.mjs