enable gunicorn only when EXPERIMENTAL flag
move the gunicorn experimentation to a later stage https://gitea.pangea.org/trustchain-oc1-orchestral/IdHub/issues/203
This commit is contained in:
parent
3a1f890386
commit
41bab7124d
|
@ -102,6 +102,7 @@ config_oidc4vp() {
|
|||
runserver() {
|
||||
if [ ! "${DEBUG:-}" = "true" ]; then
|
||||
./manage.py collectstatic
|
||||
if [ "${EXPERIMENTAL:-}" = "true" ]; then
|
||||
# reloading on source code changing is a debugging future, maybe better then use debug
|
||||
# src https://stackoverflow.com/questions/12773763/gunicorn-autoreload-on-source-change/24893069#24893069
|
||||
# gunicorn with 1 worker, with more than 1 worker this is not expected to work
|
||||
|
@ -109,6 +110,9 @@ runserver() {
|
|||
else
|
||||
./manage.py runserver 0.0.0.0:${PORT}
|
||||
fi
|
||||
else
|
||||
./manage.py runserver 0.0.0.0:${PORT}
|
||||
fi
|
||||
}
|
||||
|
||||
check_app_is_there() {
|
||||
|
|
Reference in a new issue