File size: 377 Bytes
09c4d3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

# Activate conda environment
source /opt/conda/etc/profile.d/conda.sh
conda activate base

# Run migrations
cd /app/backend
python manage.py migrate --noinput

# Collect static files (if not already done)
python manage.py collectstatic --noinput --clear

# Start gunicorn
exec gunicorn --bind 0.0.0.0:7860 --workers 2 --timeout 120 backend.wsgi:application