11 lines
216 B
Bash
11 lines
216 B
Bash
#!/bin/bash
|
|
python3 manage.py collectstatic --noinput
|
|
python3 manage.py migrate --noinput
|
|
|
|
gunicorn config.wsgi:application -b 0.0.0.0:8000 --workers $(($(nproc) * 2 + 1)) &
|
|
|
|
python3 core/bot/main.py &
|
|
|
|
wait
|
|
|
|
exit $? |