From 7b5622418eac1a772d1e6253c759edabf0b89220 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Thu, 7 May 2026 00:17:13 +0800 Subject: [PATCH] fix: update Caddyfile handling in deployment script --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9d9937d..c2bfd27 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,12 +22,12 @@ steps: # 拷贝编译产物 - cp backend/short-link-server /opt/short-link/short-link-server - cp -r frontend/dist/* /opt/short-link/frontend/ + - cp Caddyfile ~/projects/_conf/short-link.conf # 进入部署目录,用 nohup 后台启动服务(先杀死旧进程,避免端口冲突) - cd /opt/short-link - pkill -f short-link-server || true # nohup 启动,日志输出到 nohup.out - nohup ./short-link-server > nohup.out 2>&1 & - - mv ./Caddyfile ~/projects/_conf/short-link.conf - cd ~ - caddy reload depends_on: