Skip to content

Commit

Permalink
Merge branch 'main' into charging
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-ywliu authored Sep 12, 2023
2 parents 2798a88 + df9cb6f commit 802a1f7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
7 changes: 6 additions & 1 deletion backend/webui_service/webui_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (a *WebuiApp) SetReportCaller(reportCaller bool) {
func (a *WebuiApp) Start(tlsKeyLogPath string) {
// get config file info from WebUIConfig
mongodb := factory.WebuiConfig.Configuration.Mongodb
webServer := factory.WebuiConfig.Configuration.WebServer

// Connect to MongoDB
if err := mongoapi.SetMongoDB(mongodb.Name, mongodb.Url); err != nil {
Expand Down Expand Up @@ -110,7 +111,11 @@ func (a *WebuiApp) Start(tlsKeyLogPath string) {

router.NoRoute(ReturnPublic())

logger.InitLog.Infoln(router.Run(":5000"))
if webServer != nil {
logger.InitLog.Infoln(router.Run(webServer.IP + ":" + webServer.PORT))
} else {
logger.InitLog.Infoln(router.Run(":5000"))
}

wg.Wait()
}
24 changes: 12 additions & 12 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@


"@adobe/css-tools@^4.0.1":
version "4.1.0"
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.1.0.tgz#417fef4a143f4396ad0b3b4351fee21323f15aa8"
integrity sha512-mMVJ/j/GbZ/De4ZHWbQAQO1J6iVnjtZLc9WEdkUQb8S/Bu2cAF2bETXUgMAdvMG3/ngtKmcNBe+Zms9bg6jnQQ==
version "4.3.1"
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.1.tgz#abfccb8ca78075a2b6187345c26243c1a0842f28"
integrity sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==

"@ampproject/remapping@^2.2.0":
version "2.2.0"
Expand Down Expand Up @@ -13489,9 +13489,9 @@ which@^2.0.1:
isexe "^2.0.0"

word-wrap@^1.2.3, word-wrap@~1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
version "1.2.5"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==

workbox-background-sync@6.5.4:
version "6.5.4"
Expand Down

0 comments on commit 802a1f7

Please sign in to comment.