移除部署信息
parent
9bdb4a833d
commit
aaa53075f3
|
@ -36,6 +36,9 @@ func initMysql(mysqlconf *config.MysqlConfig) *sql.DB {
|
|||
cnn := fmt.Sprintf("%s:%s@tcp(%s:3306)/%s?charset=utf8", mysqlconf.UserName, mysqlconf.Password,
|
||||
mysqlconf.Addr, mysqlconf.Db)
|
||||
log.Print("Connect to mysql " + cnn)
|
||||
|
||||
//db := mysql.New(proto, "", addr, user, pass, dbname)
|
||||
|
||||
_db, err := sql.Open("mysql", cnn)
|
||||
if err != nil {
|
||||
fmt.Println("connect sql server ", err.Error())
|
||||
|
|
14
deploy.bat
14
deploy.bat
|
@ -1,14 +0,0 @@
|
|||
SET CGO_ENABLED=0
|
||||
SET GOOS=linux
|
||||
SET GOARCH=amd64
|
||||
go build ./
|
||||
|
||||
|
||||
ssh -t -i ./id_rsa ubuntu@118.24.238.198 'rm /home/ubuntu/api/bin/userapi'
|
||||
|
||||
scp -i ./id_rsa background ubuntu@118.24.238.198:/home/ubuntu/api/bin/userapi
|
||||
scp -i ./id_rsa user.yaml ubuntu@118.24.238.198:/home/ubuntu/api/bin/user.yaml
|
||||
|
||||
scp -i ./id_rsa pem/ca.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/ca.pem
|
||||
scp -i ./id_rsa pem/client-cert.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/client-cert.pem
|
||||
scp -i ./id_rsa pem/client-key.pem ubuntu@118.24.238.198:/home/ubuntu/api/bin/pem/client-key.pem
|
Loading…
Reference in New Issue