mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
2
Makefile
2
Makefile
@@ -15,7 +15,7 @@ NVMSH := $(shell [ -f "$(HOME)/.nvm/nvm.sh" ] && echo "$(HOME)/.nvm/nvm.sh" || e
|
|||||||
## DEVELOPMENT
|
## DEVELOPMENT
|
||||||
|
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: ## Set up everything to run the app
|
bootstrap: ## Set up everything to run the application
|
||||||
make generate-version-file
|
make generate-version-file
|
||||||
poetry sync --no-root
|
poetry sync --no-root
|
||||||
poetry run playwright install --with-deps
|
poetry run playwright install --with-deps
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import gunicorn
|
|||||||
# but we have an unusual configuration with a lot of cpus and not much memory
|
# but we have an unusual configuration with a lot of cpus and not much memory
|
||||||
# so adjust it.
|
# so adjust it.
|
||||||
workers = multiprocessing.cpu_count()
|
workers = multiprocessing.cpu_count()
|
||||||
worker_class = "gevent"
|
worker_class = "sync"
|
||||||
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
bind = "0.0.0.0:{}".format(os.getenv("PORT"))
|
||||||
disable_redirect_access_to_syslog = True
|
disable_redirect_access_to_syslog = True
|
||||||
gunicorn.SERVER_SOFTWARE = "None"
|
gunicorn.SERVER_SOFTWARE = "None"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from gevent import monkey
|
# from gevent import monkey
|
||||||
|
|
||||||
monkey.patch_all()
|
# monkey.patch_all()
|
||||||
|
|
||||||
|
|
||||||
import newrelic.agent # noqa
|
import newrelic.agent # noqa
|
||||||
|
|||||||
Reference in New Issue
Block a user