master
huanghai 5 years ago
parent 1eb665ac8f
commit 212a7a78f2

@ -6,5 +6,4 @@ chmod +x *.sh
# 运行为前台进程
/usr/local/dsMin/dsSso/dsSso
/usr/local/dsMin/dsSso/dsSso

@ -7,3 +7,4 @@ chmod +x *.sh
# 运行为后台进程
nohup /usr/local/dsMin/dsSso/dsSso >> /usr/local/dsSso.out 2>&1 &

@ -1,6 +1,4 @@
#!/bin/bash
# kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数
kill -9 `pgrep -f dsSso` 2>/dev/null

@ -1,6 +1,5 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2020-05-29 14:15:13.4165664 +0800 CST m=+0.077789301
// This file was generated by swaggo/swag
package docs

@ -1,32 +1,32 @@
:: 创建Windows发布版本 -ldflags "-s -w"
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go
::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe
:: 替换swagger ip为远程ip
.\WinBuild\ReplaceSwaggerIp.exe -action remote
swag init
:: 创建Linux发布版本
SET GOOS=linux
SET GOARCH=amd64
go build -gcflags "all=-N -l" -o ./build/dsSso main.go
:: 压缩一下
::.\Tools\upx.exe -9 ./build/dsSso
:: 拷贝资源文件
xcopy .\Shell\* .\build\ /y /e /i /q
xcopy .\docs\* .\build\docs /y /e /i /q
xcopy .\Config\* .\build\Config /y /e /i /q
xcopy .\Xml\* .\build\Xml /y /e /i /q
:: 上传文件
.\WinBuild\Distribute.exe
:: 替换swagger ip为本机ip
.\WinBuild\ReplaceSwaggerIp.exe -action localhost
swag init
:: 创建Windows发布版本 -ldflags "-s -w"
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go
::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe
:: 替换swagger ip为远程ip
.\WinBuild\ReplaceSwaggerIp.exe -action remote
swag init
:: 创建Linux发布版本
SET GOOS=linux
SET GOARCH=amd64
go build -gcflags "all=-N -l" -o ./build/dsSso main.go
:: 压缩一下
::.\Tools\upx.exe -9 ./build/dsSso
:: 拷贝资源文件
xcopy .\Shell\* .\build\ /y /e /i /q
xcopy .\docs\* .\build\docs /y /e /i /q
xcopy .\Config\* .\build\Config /y /e /i /q
xcopy .\Xml\* .\build\Xml /y /e /i /q
:: 上传文件
.\WinBuild\Distribute.exe
:: 替换swagger ip为本机ip
.\WinBuild\ReplaceSwaggerIp.exe -action localhost
swag init
pause
Loading…
Cancel
Save