support composite feature that server supported just by configure file #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
补丁优化app配置的使用机制,支持通过配置文件配置app运行时提供哪些功能。
如上:在
Features
section 是配置app的一些功能项配置组合,Default
Develop
Slim
是不同的运行时功能组合,Sms/Alipay/Zinc/MySQL/Redis/AliOSS/LoggerZinc/LoggerFile
是目前app程序能提供的功能,通过配置不同的功能组合,在app运行时传参告知运行那种组合,比如:运行默认
Default
的Features组合;运行
Develop
的Features组合(cli 选项这个功能后续加上)。方便添加不同的功能,比如SQL存储可以支持Postgres/sqlite3, 对象存储可以添加腾讯云/Minio/本地文件等,部署时根据具体环境通过配置文件组合需要的功能并提供对应的配置选项,就可以完成服务部署了, 当然前提是所需要的功能app是已经实现并提供的。