Initial GeoIntel V1 foundation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/../backend"
|
||||
if command -v python3 >/dev/null 2>&1 && python3 -m uvicorn --version >/dev/null 2>&1; then
|
||||
PYTHON_BIN="python3"
|
||||
elif command -v python >/dev/null 2>&1 && python -m uvicorn --version >/dev/null 2>&1; then
|
||||
PYTHON_BIN="python"
|
||||
elif command -v python.exe >/dev/null 2>&1 && python.exe -m uvicorn --version >/dev/null 2>&1; then
|
||||
PYTHON_BIN="python.exe"
|
||||
else
|
||||
echo "No python interpreter with uvicorn available" >&2
|
||||
exit 1
|
||||
fi
|
||||
"${PYTHON_BIN}" -m uvicorn app.main:app --reload
|
||||
Reference in New Issue
Block a user