Files
dokku/tests/apps/dockerfile-release/project/settings/__init__.py
Jose Diaz-Gonzalez 84367e1c16 fix: correctly handle injecting environment variables to deployment tasks
Also test that release tasks are invoked the correct environment.

Closes #3817
2020-08-31 15:01:14 -04:00

13 lines
267 B
Python

import os
environment = os.getenv('ENVIRONMENT')
if environment == 'dev':
from .dev import *
elif environment == 'staging':
from .staging import *
elif environment == 'production':
from .staging import *
else:
raise Exception("Invalid environment")