@@ -7,7 +7,7 @@ ALERTA_CONF_FILE=${ALERTA_CONF_FILE:-/app/alerta.conf}
77ALERTA_SVR_CONF_FILE=${ALERTA_SVR_CONF_FILE:-/ app/ alertad.conf}
88ALERTA_WEB_CONF_FILE=${ALERTA_WEB_CONF_FILE:-/ web/ config.json}
99NGINX_CONF_FILE=/app/nginx.conf
10- UWSGI_CONF_FILE =/app/uwsgi.ini
10+ GUNICORN_CONF_FILE =/app/gunicorn.conf.py
1111SUPERVISORD_CONF_FILE=/app/supervisord.conf
1212
1313ADMIN_USER=${ADMIN_USERS%% ,* }
@@ -67,12 +67,13 @@ if [ ! -f "${NGINX_CONF_FILE}" ]; then
6767 echo " # Create nginx configuration file."
6868 python3 -c " ${JINJA2} " < ${NGINX_CONF_FILE} .j2 > ${NGINX_CONF_FILE}
6969fi
70+ cat ${NGINX_CONF_FILE}
7071nginx -t -c ${NGINX_CONF_FILE}
7172
72- # Generate uWSGI config, if not supplied.
73- if [ ! -f " ${UWSGI_CONF_FILE } " ]; then
74- echo " # Create uWSGI configuration file."
75- python3 -c " ${JINJA2} " < ${UWSGI_CONF_FILE } .j2 > ${UWSGI_CONF_FILE }
73+ # Generate Gunicorn config, if not supplied.
74+ if [ ! -f " ${GUNICORN_CONF_FILE } " ]; then
75+ echo " # Create Gunicorn configuration file."
76+ python3 -c " ${JINJA2} " < ${GUNICORN_CONF_FILE } .j2 > ${GUNICORN_CONF_FILE }
7677fi
7778
7879# Generate web config, if not supplied.
@@ -88,7 +89,7 @@ echo Alerta Client ${CLIENT_VERSION}
8889echo Alerta WebUI ${WEBUI_VERSION}
8990
9091nginx -v
91- echo uwsgi $( uwsgi --version)
92+ gunicorn --version
9293mongo --version | grep MongoDB
9394psql --version
9495python3 --version
0 commit comments