v_2.2
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Start the application (port 8000). The administration section now runs inside
|
||||
# this same app (served at /admin), so there is no longer a separate admin
|
||||
# process or port.
|
||||
|
||||
set -e
|
||||
|
||||
cleanup() {
|
||||
echo "Shutting down…"
|
||||
kill -TERM "$MAIN_PID" 2>/dev/null || true
|
||||
wait
|
||||
exit 0
|
||||
}
|
||||
trap cleanup SIGINT SIGTERM
|
||||
|
||||
cd /app/backend
|
||||
|
||||
echo "[start] App (with built-in administration) on :8000"
|
||||
uvicorn app:app --host 0.0.0.0 --port 8000 --proxy-headers &
|
||||
MAIN_PID=$!
|
||||
|
||||
wait "$MAIN_PID"
|
||||
EXIT_CODE=$?
|
||||
echo "[exit] Service exited with code $EXIT_CODE"
|
||||
exit $EXIT_CODE
|
||||
Reference in New Issue
Block a user