dsh-app-deploy 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/client.js +346 -117
- package/package.json +2 -2
- package/server/config.js +87 -28
- package/server/deployment.js +110 -36
- package/server/local-tools.js +71 -1
- package/server/rpc.js +11 -4
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
插件发布在 npm,通过 DSH 插件管理器直接安装:
|
|
32
32
|
|
|
33
33
|
```text
|
|
34
|
-
plugin_manager → action: install_bundle → target: dsh-app-deploy@0.
|
|
34
|
+
plugin_manager → action: install_bundle → target: dsh-app-deploy@0.3.0
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
安装后刷新 DSH Web,左侧导航出现「部署」入口。
|
|
@@ -54,7 +54,7 @@ plugin_manager → action: install_bundle → target: dsh-app-deploy@0.2.0
|
|
|
54
54
|
单模块部署流程:
|
|
55
55
|
|
|
56
56
|
```
|
|
57
|
-
清理构建目录 →
|
|
57
|
+
清理构建目录 → 执行模块构建命令(通用:./gradlew … / mvn … / npm run build;首 token 为 gradle 的服务端自动追加 -PexpTime)
|
|
58
58
|
→ rsync [-r -t -z] 本地产物 → user@host:远程路径(前端加 --delete)
|
|
59
59
|
(无 rsync 时回退 rclone:前端 rclone sync / 服务端 rclone copy,走 SFTP)
|
|
60
60
|
→ ssh 远程命令(可空)
|