Compare commits

..

No commits in common. "cca98c1cf8ecdf39efe142eb0d10c79f337dbfac" and "fea4652e88f3970aaa7059b70b5d84aa034883e8" have entirely different histories.

View file

@ -99,32 +99,23 @@ config_oidc4vp() {
done done
} }
runserver() {
if [ ! "${DEBUG:-}" = "true" ]; then
./manage.py collectstatic
gunicorn --access-logfile - --error-logfile - --workers 4 -b :${PORT} trustchain_idhub.wsgi:application
else
./manage.py runserver 0.0.0.0:${PORT}
fi
}
check_app_is_there() {
if [ ! -f "./manage.py" ]; then
usage
fi
}
main() { main() {
idhub_dir='/opt/idhub' idhub_dir='/opt/idhub'
cd "${idhub_dir}" cd "${idhub_dir}"
check_app_is_there if [ ! -f "./manage.py" ]; then
usage
fi
deployment_strategy deployment_strategy
inject_env_vars inject_env_vars
runserver if [ ! "${DEBUG:-}" = "true" ]; then
./manage.py collectstatic
fi
./manage.py runserver 0.0.0.0:${PORT}
} }
main "${@}" main "${@}"