16 lines
204 B
Bash
Executable File
16 lines
204 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Export env from .env if present
|
|
if [ -f ".env" ]; then
|
|
set -a
|
|
source ./.env
|
|
set +a
|
|
fi
|
|
|
|
# Run migrations
|
|
alembic upgrade head
|
|
|
|
# Start bot
|
|
python -m app.main
|