Skip to content

Commit

Permalink
feat: use deepseek to fix s.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
linkxzhou committed Feb 15, 2025
1 parent 9f0f63a commit 0b9adfe
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ name: http-bench
access: "default"

services:
http-bench:
http-bench:
component: fc
actions:
pre-deploy:
- runtime: go
version: 1.20
- run: go mod tidy && go build -o http_bench .
- plugin: [email protected] # 使用阿里云官方Go插件管理环境
args:
runtime: Go1.20 # 明确指定Go版本,确保环境一致性
- run: go mod tidy && go build -o http_bench . && chmod +x http_bench # 添加执行权限
path: ./
props:
region: cn-hangzhou
Expand All @@ -21,19 +22,17 @@ services:
name: http-bench
description: 'HTTP/HTTPS/HTTP2/HTTP3/WS/gRPC Benchmark Tool'
runtime: custom
handler: index.handler
memorySize: 512
timeout: 600
instanceConcurrency: 100
caPort: 9000
customRuntimeConfig:
command:
- ./http_bench
- ./http_bench # 确保二进制文件在根目录
- -dashboard
- 0.0.0.0:9000
environmentVariables: {}
codeUri: ./

triggers:
- name: httpTrigger
type: http
Expand All @@ -46,7 +45,6 @@ services:
- DELETE
- HEAD
- OPTIONS

customDomains:
- domainName: auto
protocol: HTTP
Expand Down

0 comments on commit 0b9adfe

Please sign in to comment.