Skip to content

Commit a6b6140

Browse files
authored
Merge pull request #5 from drucker/feature/add-sandbox-env
Merged!
2 parents b3399f8 + a5887a8 commit a6b6140

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

template/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app.port: 5000
1818
# DRUCKER_SERVICE_NAME > app.service.name
1919
app.service.name: dev-001
2020

21-
# This must be [development/beta/staging/production]
21+
# This must be [development/beta/staging/sandbox/production]
2222
# You can also determine an environment variable "DRUCKER_SERVICE_LEVEL".
2323
# Priority is...
2424
# DRUCKER_SERVICE_LEVEL > app.service.level

utils/env_loader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class ServiceEnvType(Enum):
1010
DEVELOPMENT = 'development'
1111
BETA = 'beta'
1212
STAGING = 'staging'
13+
SANDBOX = 'sandbox'
1314
PRODUCTION = 'production'
1415

1516
@classmethod
@@ -20,6 +21,8 @@ def to_Enum(cls, istr: str):
2021
return cls.BETA
2122
elif cls.STAGING.value == istr:
2223
return cls.STAGING
24+
elif cls.SANDBOX.value == istr:
25+
return cls.SANDBOX
2326
elif cls.PRODUCTION == istr:
2427
return cls.PRODUCTION
2528
else:

0 commit comments

Comments
 (0)