forked from go-eagle/eagle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
31 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 44,4 @@ vendor | |
|
||
# custom | ||
eagle | ||
config/config.yaml | ||
config/local/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,27 @@ | ||
# conf | ||
|
||
默认从 config/{ENV} 加载配置, 可以通过下面命令生成: | ||
|
||
如果是多环境可以设定不同的配置目录,比如: | ||
- config/local 本地开发环境 | ||
- config/test 测试环境 | ||
- config/staging 预发布环境 | ||
- config/prod 线上环境 | ||
|
||
> 环境命名参考自:https://cloud.google.com/apis/design/directory_structure | ||
生成测试环境配置文件: | ||
|
||
```bash | ||
cp -r config/localhost config/test | ||
``` | ||
|
||
使用本地配置文件来运行程序,命令如下: | ||
|
||
```bash | ||
# 本地启动 | ||
# 也可以直接 APP_ENV={env} ./eagle | ||
APP_ENV=local ./eagle -c config | ||
或 | ||
./eagle -e local -c config | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters