From 1fd3945fc93387cd226e23bd395be43a4578e62a Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Sun, 21 Jul 2024 20:16:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/core/app.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/core/app.go b/backend/core/app.go index f66ac9d..a79120e 100644 --- a/backend/core/app.go +++ b/backend/core/app.go @@ -3,6 +3,8 @@ package core import ( "time" + viper "github.com/spf13/viper" + "github.com/RockChinQ/Campux/backend/controller" "github.com/RockChinQ/Campux/backend/database" "github.com/RockChinQ/Campux/backend/mq" @@ -80,5 +82,8 @@ func ScheduleRoutines( } func (a *Application) Run() { - a.API.R.Run() + + a.API.R.Run( + viper.GetString("backend.host") + ":" + viper.GetString("backend.port"), + ) }