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

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

 

使用插件前linux

我要發佈一個netcore的項目到阿里雲的windows服務器的話我通常須要以下的步驟:git

1. vs中發佈網站到c:/temp/website 目錄下github

2. 遠程桌面鏈接上遠程服務器WIN2012或者以上版本
3. 在遠程服務器上打開iis
4. IIS裏點應用程序池,停掉對應網站的程序池
5. IIS裏點網站,再停掉對應網站
6. 服務器上打開網站目錄,把本地c:/temp/website中的除appsetting.json外的全部文件都上傳到服務器上覆蓋
7. IIS上再啓動網站和對應的應用程序池
8. 本地瀏覽器上輸入網址測試網址是否通了
web

在使用插件後 我只須要點一個按鈕。。。docker

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

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

require to install deploy agent in the remote windows server.windows

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

支持website自動建立api

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| 安裝成功後 以下:

image__8.png

IIS deploy page:

image__23.png

Docker deploy page:

image__20.png

WindowsService deploy page:

image__16.png

setting page:

image__22.png

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

image__21.png

how antdeploy agent work in windows server

image__24.png

how antdeploy work in linux server

image__25.png

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羣 image__15.png

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插件:優化界面
相關文章
相關標籤/搜索