File size: 375 Bytes
f9d5960
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Apply database migrations
python manage.py migrate

# Collect static files
python manage.py collectstatic --noinput

# Start the Telegram Bot in the background
python manage.py run_telegram_bot &

# Start the Web Server in the foreground (so the container stays running)
exec gunicorn credit_card.wsgi:application --bind 0.0.0.0:7860 --timeout 120 --workers 2