Initial packaging

This commit is contained in:
Codex
2025-11-12 08:43:03 -06:00
commit 3c0a730ef4
10 changed files with 420 additions and 0 deletions

15
run-affine.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/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