mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
Merge pull request #2780 from GSA/try_gevent
try to force gevent monkey patching earlier
This commit is contained in:
+3
-7
@@ -1,11 +1,7 @@
|
|||||||
from gevent import monkey
|
from flask import Flask
|
||||||
|
from werkzeug.serving import WSGIRequestHandler
|
||||||
|
|
||||||
monkey.patch_all()
|
from app import create_app
|
||||||
|
|
||||||
from flask import Flask # noqa
|
|
||||||
from werkzeug.serving import WSGIRequestHandler # noqa
|
|
||||||
|
|
||||||
from app import create_app # noqa
|
|
||||||
|
|
||||||
WSGIRequestHandler.version_string = lambda self: "SecureServer"
|
WSGIRequestHandler.version_string = lambda self: "SecureServer"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
env: demo
|
env: demo
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 1G
|
memory: 1G
|
||||||
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py application
|
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py gunicorn_entry:application
|
||||||
public_admin_route: notify-demo.app.cloud.gov
|
public_admin_route: notify-demo.app.cloud.gov
|
||||||
cloud_dot_gov_route: notify-demo.app.cloud.gov
|
cloud_dot_gov_route: notify-demo.app.cloud.gov
|
||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
env: production
|
env: production
|
||||||
instances: 2
|
instances: 2
|
||||||
memory: 2G
|
memory: 2G
|
||||||
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py application
|
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py gunicorn_entry:application
|
||||||
public_admin_route: beta.notify.gov
|
public_admin_route: beta.notify.gov
|
||||||
cloud_dot_gov_route: notify.app.cloud.gov
|
cloud_dot_gov_route: notify.app.cloud.gov
|
||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
env: sandbox
|
env: sandbox
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 1G
|
memory: 1G
|
||||||
command: gunicorn -c /home/vcap/app/gunicorn_config.py application
|
command: gunicorn -c /home/vcap/app/gunicorn_config.py gunicorn_entry:application
|
||||||
public_admin_route: notify-sandbox.app.cloud.gov
|
public_admin_route: notify-sandbox.app.cloud.gov
|
||||||
cloud_dot_gov_route: notify-sandbox.app.cloud.gov
|
cloud_dot_gov_route: notify-sandbox.app.cloud.gov
|
||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
env: staging
|
env: staging
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 1G
|
memory: 1G
|
||||||
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py application
|
command: newrelic-admin run-program gunicorn -c /home/vcap/app/gunicorn_config.py gunicorn_entry:application
|
||||||
public_admin_route: notify-staging.app.cloud.gov
|
public_admin_route: notify-staging.app.cloud.gov
|
||||||
cloud_dot_gov_route: notify-staging.app.cloud.gov
|
cloud_dot_gov_route: notify-staging.app.cloud.gov
|
||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
from gevent import monkey
|
||||||
|
|
||||||
|
monkey.patch_all()
|
||||||
|
|
||||||
|
from application import application # noqa
|
||||||
Reference in New Issue
Block a user