Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## [4.0.1] - 2026-02-05
### Added
- 在应用初始化时自动从环境变量加载配置,环境变量会覆盖配置文件中的同名配置项

## [4.0.0] - 2025-08-28
### Changed
- Update protobuf requirement
Expand Down
1 change: 1 addition & 0 deletions sea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def create_app(root_path=None):
app_class = import_string("app:App")
_app = app_class(root_path, env=env)
_app.config.from_object(config)
_app.config.load_config_from_env()

_app.load_middlewares()
_app.load_extensions_in_module(import_string("app.extensions"))
Expand Down