Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>auto-deployNew to Visual Studio Code? Get it now.
auto-deploy

auto-deploy

water

|
225 installs
| (0) | Free
一个自动化部署的插件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

简介

这是一个自动部署辅助插件

配置

在编辑器全局设置或者在项目文件夹下.vscode的文件夹中的settings.json中进行设置

配置例子

"auto-deploy.servers": 
  [
    {
      "publicPath": "dist", // 项目打包之后的文件夹名称,一般都是dist文件夹,如果你的项目打包成别的文件夹名称,填写打包之后文件夹名称即可
      "label": "测试环境", // 部署环境的名称
      "username": "water", // 部署服务器的账号
      "password": "123456", // 部署服务器的密码,如果重要,可以不写在当前配置文件中
      "path": "/home/h5/", //前端代码在服务器下的路径
      "host": "127.0.0.1", //服务器ip
      "port": "22", //端口
      "script": "build", //打包命令
    },
    {
      "publicPath": "dist", // 项目打包之后的文件夹名称,一般都是dist文件夹,如果你的项目打包成别的文件夹名称,填写打包之后文件夹名称即可
      "label": "预发环境", // 部署环境的名称
      "username": "water", // 部署服务器的账号
      "password": "abcdefafafa", // 部署服务器的密码,如果重要,可以不写在当前配置文件中
      "path": "/home/build/h5", //前端代码在服务器下的路径
      "host": "127.0.0.1", //服务器ip
      "port": "22", //端口
      "script": "build", //打包命令
    },
  ],
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft