Skip to content

Commit 164df2a

Browse files
committed
Rename APP_ENV to BOLT_ENV
1 parent 1f94c50 commit 164df2a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bolt-pytest/bolt/pytest/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def cli(pytest_args):
2929
# pytest_args.append("-W")
3030
# pytest_args.append("error::DeprecationWarning")
3131

32-
os.environ.setdefault("APP_ENV", "test")
32+
os.environ.setdefault("BOLT_ENV", "test")
3333

34-
click.secho(f"Running pytest with APP_ENV={os.environ['APP_ENV']}", bold=True)
34+
click.secho(f"Running pytest with BOLT_ENV={os.environ['BOLT_ENV']}", bold=True)
3535

3636
result = subprocess.run(
3737
[

bolt/bolt/runtime/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The `.env` should then be in your `.gitignore`!
3232

3333
It would seem like `.env.dev` would be a good idea,
3434
but there's a chicken-and-egg problem with that.
35-
You would then have to prefix most (or all) of your local commands with `APP_ENV=dev` or otherwise configure your environment to do that for you.
35+
You would then have to prefix most (or all) of your local commands with `BOLT_ENV=dev` or otherwise configure your environment to do that for you.
3636
Generally speaking,
3737
a production `.env` shouldn't be committed in your repo anyway,
3838
so using `.env` for local development is ok.

bolt/bolt/runtime/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup():
4343
sys.path.insert(0, APP_PATH.as_posix())
4444

4545
# Load .env files automatically before settings
46-
if app_env := environ.get("APP_ENV", ""):
46+
if app_env := environ.get("BOLT_ENV", ""):
4747
load_dotenv(f".env.{app_env}")
4848
else:
4949
load_dotenv(".env")

0 commit comments

Comments
 (0)