Skip to content

Commit

Permalink
Update env naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
akuny committed Jan 24, 2024
1 parent 8b9f50b commit 6def4e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
jobs:
lint-and-test:
runs-on: ubuntu-latest
env:
APP_ENV: "test"

steps:
- name: Check out repository
Expand Down
2 changes: 1 addition & 1 deletion manifest-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ applications:
stack: cflinuxfs4
command: poetry run start web
env:
APP_ENV: development-remote
APP_ENV: development_remote
2 changes: 1 addition & 1 deletion nad_ch/application_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def create_task_queue(self):
def create_app_context():
if config.APP_ENV == "test":
return TestApplicationContext()
elif config.APP_ENV == "development-local":
elif config.APP_ENV == "development_local":
return DevLocalApplicationContext()
else:
return ApplicationContext()
4 changes: 2 additions & 2 deletions nad_ch/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .base import APP_ENV


if APP_ENV == 'development-local' or APP_ENV == 'test':
if APP_ENV == 'development_local' or APP_ENV == 'test':
from .development_local import *
elif APP_ENV == 'development-remote':
elif APP_ENV == 'development_remote':
from .development_remote import *

0 comments on commit 6def4e5

Please sign in to comment.