Initial packaging
This commit is contained in:
15
run-affine.sh
Normal file
15
run-affine.sh
Normal 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
|
||||
Reference in New Issue
Block a user