Skip to content

Commit

Permalink
Use WEB_CONCURRENCY instead of workers in dev
Browse files Browse the repository at this point in the history
Use the `WEB_CONCURRENCY` envvar in `tox.ini` instead of the `workers`
setting in `gunicorn-dev.conf.py`. This is how it's already done in the
cookiecutter and is how we do it in prod.
  • Loading branch information
seanh committed Jan 10, 2024
1 parent b8382b7 commit f2de8f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion conf/gunicorn-dev.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
reload = True
reload_extra_files = "bouncer/templates"
timeout = 0
workers = 2
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ setenv =
dev: HYPOTHESIS_AUTHORITY = {env:HYPOTHESIS_AUTHORITY:localhost}
dev: HYPOTHESIS_URL = {env:HYPOTHESIS_URL:http://localhost:5000}
dev: VIA_BASE_URL = {env:VIA_BASE_URL:http://localhost:9083}
dev: WEB_CONCURRENCY = {env:WEB_CONCURRENCY:2}
passenv =
HOME
dev: CHROME_EXTENSION_ID
Expand Down

0 comments on commit f2de8f5

Please sign in to comment.