Skip to content

Commit

Permalink
update env configs (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas authored Jan 15, 2025
1 parent 5999940 commit 16c6776
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ create-db:
$(ENV_VARS) python -m scripts.create_db --s3 --db
.PHONY: create-db

create-staging-db:
ENVIRONMENT=staging python -m scripts.create_db --s3 --db
.PHONY: create-staging-db

create-production-db:
ENVIRONMENT=production python -m scripts.create_db --s3 --db
.PHONY: create-production-db

format:
@black www tests
@ruff check --fix www tests
Expand Down
1 change: 1 addition & 0 deletions www/settings/configs/local.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
environment: local
middleware:
secret_key: test
aws:
Expand Down
1 change: 1 addition & 0 deletions www/settings/configs/production.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
environment: production
aws:
dynamodb:
deletion_protection: true
Expand Down
1 change: 1 addition & 0 deletions www/settings/configs/staging.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
environment: staging
site:
homepage: https://dashboard-staging.kscale.dev
artifact_base_url: https://stagingassets.kscale.dev/
Expand Down
2 changes: 1 addition & 1 deletion www/settings/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ class EnvironmentSettings:
aws: AwsSettings = field(default_factory=AwsSettings)
site: SiteSettings = field(default_factory=SiteSettings)
debug: bool = field(default=False)
environment: str = field(default="local")
environment: str = field(default=MISSING)

0 comments on commit 16c6776

Please sign in to comment.