使用命令传递启动参数

This commit is contained in:
2024-11-14 11:12:57 +08:00
parent ca7ff275c6
commit 54092a0b9a
2 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ build:
go mod tidy
go build -o dist/main bin/main.go
# 更新部署到服务器
# 更新部署到服务器(生产和测试)
update: build
scp dist/main $(HOST):~/webp/main_new
ssh ${HOST} "mv ~/webp/main ~/webp/main_old"