Skip to content

Commit 45b2c99

Browse files
authored
Merge pull request pallets#4742 from pallets/env-default
fix default value of app.env
2 parents 4984753 + a6a7a57 commit 45b2c99

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Version 2.2.2
33

44
Unreleased
55

6+
- Fix the default value for ``app.env`` to be ``"production"``. This
7+
attribute remains deprecated. :issue:`4740`
8+
69

710
Version 2.2.1
811
-------------

src/flask/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def make_config(self, instance_relative: bool = False) -> Config:
827827
if instance_relative:
828828
root_path = self.instance_path
829829
defaults = dict(self.default_config)
830-
defaults["ENV"] = os.environ.get("FLASK_ENV") or "development"
830+
defaults["ENV"] = os.environ.get("FLASK_ENV") or "production"
831831
defaults["DEBUG"] = get_debug_flag()
832832
return self.config_class(root_path, defaults)
833833

0 commit comments

Comments
 (0)