diff --git a/ansible/playbooks/deploy_app.yml b/ansible/playbooks/deploy_app.yml index 095fc440e..d631de657 100644 --- a/ansible/playbooks/deploy_app.yml +++ b/ansible/playbooks/deploy_app.yml @@ -129,8 +129,6 @@ DOCKERBUILD: "" state: started command: gunicorn --config /srv/newsblur/config/gunicorn_conf.py newsblur_web.wsgi:application - env: - TEMP8001: "true" hostname: "{{ inventory_hostname }}" log_driver: json-file log_options: diff --git a/config/gunicorn_conf.py b/config/gunicorn_conf.py index 62fff7529..6ac9ba055 100644 --- a/config/gunicorn_conf.py +++ b/config/gunicorn_conf.py @@ -12,8 +12,6 @@ GIGS_OF_MEMORY = psutil.virtual_memory().total / 1024 / 1024 / 1024.0 NUM_CPUS = psutil.cpu_count() bind = "0.0.0.0:8000" -if os.environ.get("TEMP8001", False): - bind = "0.0.0.0:8001" pidfile = "/srv/newsblur/logs/gunicorn.pid" logfile = "/srv/newsblur/logs/production.log" diff --git a/newsblur_web/urls.py b/newsblur_web/urls.py index e1a05938c..ee9375f7d 100644 --- a/newsblur_web/urls.py +++ b/newsblur_web/urls.py @@ -84,7 +84,7 @@ urlpatterns = [ url(r"^account/ifttt/v1/", include("apps.oauth.urls")), url(r"^account/", include("oauth2_provider.urls", namespace="oauth2_provider")), url(r"^monitor/", include("apps.monitor.urls"), name="monitor"), - url(r"^health-check/", static_views.health_check, name="health-check"), + url(r"^health-check/?", static_views.health_check, name="health-check"), url("", include("django_prometheus.urls")), ]