Skip to content

Commit

Permalink
fix: Incorrect environment variable interpolation in Makefile (#3709)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Apr 2, 2024
1 parent eca05ca commit 79a85bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/.env-ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
ANALYTICS_DATABASE_URL=postgres://postgres:postgres@localhost:5432/analytics
PYTEST_ADDOPTS=--cov . --cov-report xml -n auto --dist worksteal

GUNICORN_LOGGER_CLASS=util.logging.GunicornJsonCapableLogger
3 changes: 2 additions & 1 deletion api/.env-local
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DATABASE_URL=postgresql://postgres:password@localhost:5432/flagsmith
DJANGO_SETTINGS_MODULE=app.settings.local
PYTEST_ADDOPTS=--cov . --cov-report html -n auto
PYTEST_ADDOPTS=--cov . --cov-report html -n auto
GUNICORN_LOGGER_CLASS=util.logging.GunicornJsonCapableLogger
2 changes: 1 addition & 1 deletion api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ django-collect-static:
.PHONY: serve
serve:
poetry run gunicorn --bind 0.0.0.0:8000 \
--logger-class ${GUNICORN_LOGGER_CLASS:-'util.logging.GunicornJsonCapableLogger'} \
--logger-class ${GUNICORN_LOGGER_CLASS} \
--reload \
app.wsgi

Expand Down

0 comments on commit 79a85bd

Please sign in to comment.