reload unicorn when code changes

This commit is contained in:
Andreas Zweili 2020-07-04 11:54:07 +02:00
parent b0346c8850
commit e68d3b879d
1 changed files with 1 additions and 1 deletions

2
run.sh
View File

@ -26,4 +26,4 @@ else
python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'password')"
touch .second_run
fi
gunicorn network_inventory.wsgi:application --bind 0.0.0.0:8000 --workers 3
gunicorn network_inventory.wsgi:application --reload --bind 0.0.0.0:8000 --workers 3