15 lines
523 B
Bash
15 lines
523 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Starta LandveX Fas 1 API på port 8083
|
||
|
|
|
||
|
|
cd "$(dirname "$0")"
|
||
|
|
|
||
|
|
export LANDVEX_DB="/home/bernt/.openclaw/workspace/landvex-paket/landvex-produktionspaket-v1/landvex.db"
|
||
|
|
export LANDVEX_FEEDBACK_DIR="/home/bernt/.openclaw/workspace/landvex-paket/api/feedback"
|
||
|
|
|
||
|
|
# Använd uvicorn direkt om tillgängligt, annars python -m uvicorn
|
||
|
|
if command -v uvicorn &> /dev/null; then
|
||
|
|
exec uvicorn main:app --host 0.0.0.0 --port 8083 "$@"
|
||
|
|
else
|
||
|
|
exec python3 -m uvicorn main:app --host 0.0.0.0 --port 8083 "$@"
|
||
|
|
fi
|