Files
affine-cloudron/run-affine.sh
2025-11-12 08:43:03 -06:00

16 lines
295 B
Bash

#!/bin/bash
set -euo pipefail
APP_DIR=${APP_BUILD_DIR:-/app/code/affine}
cd "$APP_DIR"
log() {
printf '[%s] %s\n' "$(date --iso-8601=seconds)" "$*"
}
log "Running AFFiNE pre-deployment migrations"
node ./scripts/self-host-predeploy.js
log "Starting AFFiNE server"
exec node ./dist/main.js