修改部署配置
continuous-integration/drone/push Build is passing Details

main
franktrue 3 years ago
parent 045faee268
commit 2b0127c5b5

@ -15,13 +15,13 @@ steps:
settings:
user: root
key:
from_secret: ssh_key
from_secret: kelvin_ssh_key
hosts: # 多个ip使用,隔开
from_secret: ssh_host
from_secret: kelvin_ssh_host
# 来源目录
source: deploy/
# 目标服务器目录
target: /mnt/data/wwwroot/api2gpt/mid
target: /data/wwwroot/api2gpt/mid
script:
- cd /mnt/data/wwwroot/api2gpt/mid
- cd /data/wwwroot/api2gpt/mid
- docker-compose up -d --build

@ -81,7 +81,7 @@ func balanceConsumption(key string, model string, prompt_tokens int, completion_
// 构造post请求的body
reqBody := bytes.NewBuffer(jsonData)
url := "http://121.4.100.155:8080/other/usageRecord"
url := "http://172.17.0.1:8080/other/usageRecord"
req2, err := http.NewRequest("POST", url, reqBody)
// 设置http请求的header

Loading…
Cancel
Save