first commit
This commit is contained in:
14
scripts/run.sh
Executable file
14
scripts/run.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
|
||||
cd "${PROJECT_ROOT}"
|
||||
source .venv/bin/activate
|
||||
|
||||
UVICORN_CMD=${UVICORN_CMD:-uvicorn}
|
||||
HOST=${HOST:-0.0.0.0}
|
||||
PORT=${PORT:-8000}
|
||||
|
||||
exec "${UVICORN_CMD}" backend.app:app --host "${HOST}" --port "${PORT}"
|
||||
Reference in New Issue
Block a user