Update Dockerfile and scripts

This commit is contained in:
Keannu Christian Bernasol 2024-11-27 00:32:53 +08:00
parent 5bc170f519
commit 6a8f81c954
3 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,9 @@ if [ ! -d "static" ]; then
python manage.py collectstatic --noinput
fi
if [ "$DEBUG" = 'True' ]; then
tmux new-session -d -s "API File Watcher" "cd /app/docmanager_backend && python manage.py start_watcher"
python manage.py runserver "0.0.0.0:8000"
else
tmux new-session -d -s "API File Watcher" "cd docmanager_backend && python manage.py start_watcher"
gunicorn --workers 8 --bind 0.0.0.0:8000 config.wsgi:application
fi