16 lines
289 B
Bash
16 lines
289 B
Bash
#!/bin/bash
|
|
set -e
|
|
echo "Running migrations..."
|
|
alembic upgrade head
|
|
|
|
echo "Seeding templates and admin user..."
|
|
python seed.py
|
|
|
|
echo "Starting API server..."
|
|
exec uvicorn app.main:app \
|
|
--host 0.0.0.0 \
|
|
--port 8888 \
|
|
--reload \
|
|
--reload-dir /app/app \
|
|
--reload-dir /app/alembic
|