parent
21aaf0ef9a
commit
a52e27d9d9
1 changed files with 1 additions and 1 deletions
|
|
@ -827,7 +827,7 @@ class Flask(Scaffold):
|
|||
if instance_relative:
|
||||
root_path = self.instance_path
|
||||
defaults = dict(self.default_config)
|
||||
defaults["ENV"] = os.environ.get("FLASK_ENV") or "development"
|
||||
defaults["ENV"] = os.environ.get("FLASK_ENV") or "production"
|
||||
defaults["DEBUG"] = get_debug_flag()
|
||||
return self.config_class(root_path, defaults)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue