PLT-6317 disable file watcher while running from makefile (#6103)
* PLT-6317 disable file watcher while running from make file * Removing debug stmt
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
3207886514
Коммит
acc991dea1
@@ -20,6 +20,7 @@ func doLoadConfig(filename string) (err string) {
|
||||
utils.LoadConfig(filename)
|
||||
utils.InitializeConfigWatch()
|
||||
utils.EnableConfigWatch()
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ func main() {
|
||||
|
||||
func init() {
|
||||
rootCmd.PersistentFlags().StringP("config", "c", "config.json", "Configuration file to use.")
|
||||
rootCmd.PersistentFlags().Bool("disableconfigwatch", false, "When set config.json will not be loaded from disk when the file is changed.")
|
||||
|
||||
resetCmd.Flags().Bool("confirm", false, "Confirm you really want to delete everything and a DB backup has been performed.")
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ func runServerCmd(cmd *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
utils.CfgDisableConfigWatch, _ = cmd.Flags().GetBool("disableconfigwatch")
|
||||
|
||||
runServer(config)
|
||||
return nil
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user