From d3a2a123f8fc7311b552b390b0a3a5734e520f8e Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Wed, 6 May 2026 23:49:45 +0800 Subject: [PATCH] fix: add service management commands to deployment pipeline Co-authored-by: Copilot --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index f9fba01..c4cc2fb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,6 +21,9 @@ steps: - cp backend/short-link-server /opt/short-link/short-link-server.new - cp -r frontend/dist/* /opt/short-link/frontend/ - mv /opt/short-link/short-link-server.new /opt/short-link/short-link-server + - cp short-link.service /etc/systemd/system/short-link.service + - systemctl daemon-reload + - systemctl enable short-link - systemctl restart short-link - systemctl reload caddy depends_on: