1. 程式人生 > >一鍵發布部署vs插件[AntDeploy]開源了

一鍵發布部署vs插件[AntDeploy]開源了

關閉 防止 地址 sets 增量 ken 規則 llb tool

原文:一鍵發布部署vs插件[AntDeploy]開源了

  1. 支持docker一鍵部署(支持netcore)
  2. 支持iis一鍵部署(支持netcore和framework)(支持增量發布)(支持一鍵回滾)(支持點火)
  3. 支持windows服務一鍵部署(支持netcore和framework)(支持增量發布)(支持一鍵回滾)

support deploy netcore project and netframework project to the remote server iis by one click.

if remote server not exist the website in iis.will automatically create.

require to install deploy agent in the remote windows server.

支持一鍵部署 netcore 和 netframework發布到遠程機器的iis (支持mvc webapi)

支持website自動創建

support deploy netcore project to the remote linux server as a docker container by one click.

test success in centos7+ and ubuntu 16.04 +

no need deploy agent installed in the linux server.

支持 一鍵部署netcore項目發布到linux服務器的docker容器

在 centos7+ 和ubuntu 16.04 + 測試成功

不需要在linux上安裝agent

support deploy netcore project and netframework project to the remote server windows services by one click.

if service not exist on remote server will automatically create.

require to install deploy agent in the remote windows server.

支持netcore和netframework發布

支持windowsservice自動創建

windows server deploy need install agent | agent下載地址和使用方法請參考:

how to install agent: https://github.com/yuzd/AntDeployAgent

installed antdeploy vs plugin success| 安裝成功後 如下:

技術分享圖片

IIS deploy page:

技術分享圖片

Docker deploy page:

技術分享圖片

WindowsService deploy page:

技術分享圖片

setting page:

技術分享圖片

how to set https://github.com/yuzd/AntDeployAgent/issues/8

Quick Start

  1. install antdeploy plugin in the visual stutio.
  2. create a netcore project then right click on the project file in vs solution.
  3. click antdeploy to open deploy window
  4. first you should type env name to add a env in setting tab page.
  5. add server under the env. you should connect test after add server.
  6. enjoy deploy by one button click

how antdeploy work

技術分享圖片

how antdeploy agent work in windows server

技術分享圖片

how antdeploy work in linux server

技術分享圖片

Source Code

https://github.com/yuzd/AntDeployAgent

https://github.com/yuzd/AntDeploy

QA & DEMO

【demo】deploy netcore project to Docker : https://github.com/yuzd/AntDeployAgent/issues/6

【demo】deploy netframework mvc project to remote iis :https://github.com/yuzd/AntDeployAgent/issues/2

【demo】deploy netcore mvc project to remote iis : https://github.com/yuzd/AntDeployAgent/issues/3

【demo】deploy netframework windows service project to remote server :https://github.com/yuzd/AntDeployAgent/issues/4

【demo】deploy netcore windows service project to remote server : https://github.com/yuzd/AntDeployAgent/issues/5

【how to install agent in windows server】https://github.com/yuzd/AntDeployAgent/issues/1

【why need to install agent in windows server】https://github.com/yuzd/AntDeployAgent/issues/7

一鍵發布工具(ant deploy tool)

AntDeploy交流反饋QQ群 技術分享圖片

Change LOG

  1. release build生成目錄按照環境分不同的文件夾,解決增量發布的時候同一個項目發不同的環境導致獲取增量失敗的問題
  1. setting界面 排除改成跟著環境走 請用3.1版本的時候格外註意要重新配置下排除規則
  2. iis發布增加可選功能:【點火】
  1. docker發布支持配置volume參數(可以配多個)
  2. setting界面支持配置 windows服務器發布時備份文件的排除規則
  3. 修復部分機器上日誌出現中文亂碼問題
  1. docker發布image和container時打上version tag 目的是docker查詢時一眼能看出來版本號
  2. docker 發布增加刪除發布超過xx天的舊版本文件功能,防止占用磁盤過大的問題
  3. rollback 日誌優化
  1. 修復個別機器打包時候報System.IO.Compression.dll找不到的問題
  2. windows agent 增加定時清除發布已超過>=10天的版本文件目錄,防止占用磁盤過大的問題
  1. 增加回滾功能(註意:windows服務器必須得agent版本>=2.7)
  2. docker發布zip打包改成tar打包,這樣一來linux服務器就不需要裝unzip了

增量發布bug修復

增量發布功能:

  1. iis發布界面新增是否打開增量發布功能checkbox開關
  2. windows服務發布界面新增是否打開增量發布功能checkbox開關

註意:docker發布不支持增量

窗體改成Showmodel模式 規避忘記關導致進程占用操作vs會卡死的問題

  1. agent:發布時增加日誌記錄當前agent的版本號

  2. vs插件:在對windows服務器進行ConnectTest的時候對Token進行urlEncode處理

  3. vs插件:在對publish目錄進行打包時候 ignoreList支持可以增加排除整個文件夾

    例如在發布netcore的項目到iis場景下,在非首次發布的時候 publish目錄下的 runtimes其實可以不用覆蓋,那麽就可以排除掉這個文件夾 在IgnoreList裏面新增加一條

/{文件夾名稱}?.+

例如 :   /runtimes?.+         就代表排除掉publish下的整個runtimes文件夾

vs插件:緊急修復運行插件後,關閉vs出現關不掉的bug

  1. agent:iis 發布 和 windows服務發布的日誌完善
  2. agent: 如果site已存在 或者 windows服務已存在 進行全量發布時 已存在的文件目錄不存在時自從創建目錄
  3. vs插件:優化界面

一鍵發布部署vs插件[AntDeploy]開源了