init commit
This commit is contained in:
15
entrypoint.sh
Executable file
15
entrypoint.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user