Skip to content

Commit 1bbc91f

Browse files
committed
fix: 部署时复制JAR包到正确路径
- 在重启服务前将target/TinyFlow-0.0.1-SNAPSHOT.jar复制到/opt/tinyflow/app.jar - 确保systemd服务加载最新构建的JAR包 - 修复服务重启后加载旧版本代码的问题
1 parent fbd71b4 commit 1bbc91f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
cd ..
9595
mvn clean package -DskipTests -q
9696
97+
# 复制JAR包到运行目录
98+
sudo cp target/TinyFlow-0.0.1-SNAPSHOT.jar /opt/tinyflow/app.jar
99+
97100
# 重新加载 systemd 并重启服务
98101
sudo systemctl daemon-reload
99102
sudo systemctl restart tinyflow

0 commit comments

Comments
 (0)