mirror of
https://github.com/beego/bee.git
synced 2025-06-11 18:40:40 +00:00
Load configuration for all commands
This removes the filepath.Walk() when loading configuration, as it can read a Beefile from another project in the $GOPATH. Now config.LoadConfig() is called for all available commands.
This commit is contained in:
@ -34,11 +34,8 @@ var CmdRun = &commands.Command{
|
||||
Run command will supervise the filesystem of the application for any changes, and recompile/restart it.
|
||||
|
||||
`,
|
||||
PreRun: func(cmd *commands.Command, args []string) {
|
||||
version.ShowShortVersionBanner()
|
||||
config.LoadConfig()
|
||||
},
|
||||
Run: RunApp,
|
||||
PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() },
|
||||
Run: RunApp,
|
||||
}
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user