README / start.sh
CJGibs's picture
Harden Space startup entrypoint
b901d2c
raw
history blame contribute delete
588 Bytes
#!/bin/sh
set -eu
PORT_VALUE="${PORT:-7860}"
echo "Starting Aether Voice Studio"
echo "Working directory: $(pwd)"
echo "Python: $(python --version 2>&1)"
echo "Port: ${PORT_VALUE}"
if [ ! -f /workspace/app/frontend/dist/index.html ]; then
echo "Frontend build is missing at /workspace/app/frontend/dist/index.html"
exit 1
fi
if [ ! -f /workspace/app/backend/main.py ]; then
echo "Backend entrypoint is missing at /workspace/app/backend/main.py"
exit 1
fi
exec python -m uvicorn main:app --app-dir /workspace/app/backend --host 0.0.0.0 --port "${PORT_VALUE}" --log-level info