14 lines
319 B
Bash
Executable File
14 lines
319 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
source .venv/bin/activate
|
|
ENV_FILE=".env.development"
|
|
if [ ! -f "$ENV_FILE" ]; then
|
|
echo "missing $ENV_FILE."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Loading environment from '$ENV_FILE'"
|
|
exec uvicorn app.main:app --env-file "$ENV_FILE" --host 127.0.0.1 --port 8000 --reload
|