nacos config

This commit is contained in:
eson 2023-09-21 11:57:31 +08:00
parent f0f9ae287d
commit e7a1a569f7
2 changed files with 13 additions and 2 deletions

View File

@ -20,6 +20,16 @@ import (
"github.com/gorilla/websocket"
"github.com/zeromicro/go-zero/core/logx"
"gopkg.in/yaml.v2"
_ "fusenapi/utils/auth"
_ "fusenapi/utils/autoconfig"
_ "fusenapi/utils/check"
_ "fusenapi/utils/collect"
_ "fusenapi/utils/encryption_decryption"
_ "fusenapi/utils/fsconfig"
_ "fusenapi/utils/fssql"
_ "github.com/zeromicro/go-zero/rest"
)
// Backend结构体

View File

@ -17,7 +17,7 @@ run_server() {
# 导航到相应的目录
cd server/$server_name
go build
go build -linkshared
[ -f .gitignore ] || echo $server_name > .gitignore
# 使用 screen 运行 go run <server_name>.go
screen -dmS $server_name -L ./$server_name
@ -40,9 +40,10 @@ done
# 在每个服务器目录下运行相应的 go 程序
for server_dir in "${server_dirs[@]}"; do
run_server $server_dir &
run_server $server_dir
done
# 定义目录和screen名称
dir_path="./proxyserver"
screen_name="proxyserver"