~homeworkprod/byceps

80dac62619995fa7041207c8b611d77ca6e99f41 — Jochen Kupperschmidt 5 years ago 12d5f2b
Change the name of the environment variable to specify the app configuration with from `ENV`/`ENVIRONMENT` to `BYCEPS_CONFIG`
3 files changed, 3 insertions(+), 3 deletions(-)

M byceps/util/system.py
M scripts/README.txt
M serve.py
M byceps/util/system.py => byceps/util/system.py +1 -1
@@ 11,7 11,7 @@ byceps.util.system
import os


CONFIG_ENV_VAR_NAME = 'ENV'
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'


def get_config_env_name_from_env(*, default=None):

M scripts/README.txt => scripts/README.txt +1 -1
@@ 1,3 1,3 @@
To execute a script from this folder, call it like this:

    $ PYTHONPATH=.. ENV=someparty-staging ./create_some_stuff.py
    $ PYTHONPATH=.. BYCEPS_CONFIG=someparty-staging ./create_some_stuff.py

M serve.py => serve.py +1 -1
@@ 6,7 6,7 @@ import sys
from byceps.application import create_app, init_app


CONFIG_ENV_VAR_NAME = 'ENVIRONMENT'
CONFIG_ENV_VAR_NAME = 'BYCEPS_CONFIG'


environment = os.environ.get(CONFIG_ENV_VAR_NAME)