mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
instantiate newrelic in gunicorn_entry.py
This commit is contained in:
2
Makefile
2
Makefile
@@ -42,7 +42,7 @@ watch-frontend: ## Build frontend and watch for changes
|
|||||||
|
|
||||||
.PHONY: run-flask
|
.PHONY: run-flask
|
||||||
run-flask: ## Run flask
|
run-flask: ## Run flask
|
||||||
poetry run newrelic-admin run-program flask run -p 6012 --host=0.0.0.0
|
poetry run flask run -p 6012 --host=0.0.0.0
|
||||||
|
|
||||||
.PHONY: run-flask-bare
|
.PHONY: run-flask-bare
|
||||||
run-flask-bare: ## Run flask without invoking poetry so we can override ENV variables in .env
|
run-flask-bare: ## Run flask without invoking poetry so we can override ENV variables in .env
|
||||||
|
|||||||
@@ -2,4 +2,9 @@ from gevent import monkey
|
|||||||
|
|
||||||
monkey.patch_all()
|
monkey.patch_all()
|
||||||
|
|
||||||
|
|
||||||
|
import newrelic.agent # noqa
|
||||||
|
|
||||||
|
newrelic.agent.initialize("./newrelic.ini")
|
||||||
|
|
||||||
from application import application # noqa
|
from application import application # noqa
|
||||||
|
|||||||
2
poetry.lock
generated
2
poetry.lock
generated
@@ -4207,4 +4207,4 @@ cffi = ["cffi (>=1.11)"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.1"
|
lock-version = "2.1"
|
||||||
python-versions = "^3.13.2"
|
python-versions = "^3.13.2"
|
||||||
content-hash = "e750ecc1543890e5a499a3895b707c53ad19566e852708b48fefec6e65a129a4"
|
content-hash = "6f5a26be48841af3784f06d9c79c27a4bc7c2c8183da5d27eae2d371a2884258"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ gunicorn = {version = "==23.0.0", extras = ["gevent"]}
|
|||||||
humanize = "~=4.12"
|
humanize = "~=4.12"
|
||||||
itsdangerous = "~=2.2"
|
itsdangerous = "~=2.2"
|
||||||
jinja2 = "^3.1.6"
|
jinja2 = "^3.1.6"
|
||||||
newrelic = "*"
|
newrelic = "^10.15.0"
|
||||||
pyexcel = "==0.7.3"
|
pyexcel = "==0.7.3"
|
||||||
pyexcel-io = "==0.6.7"
|
pyexcel-io = "==0.6.7"
|
||||||
pyexcel-ods3 = "==0.6.1"
|
pyexcel-ods3 = "==0.6.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user