This commit is contained in:
Arthur Barr
2018-05-15 09:38:57 +01:00
2 changed files with 7 additions and 3 deletions

View File

@@ -26,11 +26,15 @@ import (
func postInit(name string) error {
disable := os.Getenv("MQ_DISABLE_WEB_CONSOLE")
if disable != "true" && disable != "1" {
// Configure and start the web server, in the background (if installed)
// Configure the web server (if installed)
err := configureWebServer()
if err != nil {
return err
}
// Start the web server, in the background (if installed)
// WARNING: No error handling or health checking available for the web server,
// which is why it's limited to use with MQ Advanced for Developers only
go func() {
configureWebServer()
startWebServer()
}()
}

View File

@@ -113,7 +113,7 @@ func configureWebServer() error {
}
err := CopyFile(from, to)
if err != nil {
log.Debug(err)
log.Error(err)
return err
}
}