# 自动化部署 **Repository Path**: SRworks/automated-deployment ## Basic Information - **Project Name**: 自动化部署 - **Description**: 程序将帮助您通过SSH上传文件到服务器 - **Primary Language**: NodeJS - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-20 - **Last Updated**: 2024-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 安装 pnpm add webdpl ## 使用 ### Create a configuration file named **webdpl.config.ts** in the root directory ```js import { defineConfig } from "webdpl"; export default defineConfig({ sshList: [ { host: "127.0.0.1", username: "root", password: "root", }, ], uploadList: [ { host: "127.0.0.1", fileList: [ { localPath: "dist", remotePath: "the path of your project in server", }, { localPath: "src", remotePath: "the path of your project in server", }, ], }, ], }); ``` ### 配置脚本 package.json ```js "scripts": { "dp": "webdpl deploy" } ``` ### 执行命令 ```js pnpm dp ```