Update scripts

This commit is contained in:
Keannu Christian Bernasol 2024-11-27 00:49:20 +08:00
parent 52d74de4fc
commit 463e33d219
3 changed files with 4 additions and 3 deletions

View file

@ -8,10 +8,9 @@ if [ ! -d "static" ]; then
echo "Generating static files"
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"
if [ "$DEBUG" = 'True' ]; then
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