zoukankan      html  css  js  c++  java
  • msdeploy 远程发布到lls

    一、bat配置

    cd MOC.HRManagement.Weixin.Front
    
    nvm use 8.11.0
    npm config set registry http://mirrors.shanghai-electric.com:8081/nexus/repository/npm-group/
    npm run builduat
    set b=%cd%
    
    "C:Program FilesIISMicrosoft Web Deploy V3msdeploy.exe"  -verb:sync -source:contentpath=E:jenkinsworkspaceHRSSCWX_FRONTENDMOC.HRManagement.Weixin.Frontdist -dest:contentpath=C:Jenkins_Publish	est	est2,computername=10.0.11.95,username=ad01用户名,password=******** -enableRule:DoNotDeleteRule

    二、发布前先执行powershell命令备份

    "C:Program FilesIISMicrosoft Web Deploy V3msdeploy.exe"  -verb:sync -skip:absolutePath=vendors.979307d8.chunk.css  -preSync:runCommand="C:WindowsSystem32WindowsPowerShellv1.0powershell C:Jenkins_Publishack.ps1 ", -source:contentpath=E:jenkinsworkspacePRD_SPFAMOC.HRMOC.OA.Web -dest:contentpath=C:Jenkins_PublishSPFA,computername=%TP%,username=ad01DCxxxxxxxxx,password=xxxxxxxx -enableRule:DoNotDeleteRule -allowUntrusted=true  -postSync:runCommand="C:WindowsSystem32inetsrvappcmd.exe start apppool /apppool.name:SPFA"
    

    -skip:absolutePath=vendors.979307d8.chunk.css  保留这个文件不替换更新,默认是自动更新所有文件。

    -enableRule:DoNotDeleteRule -allowUntrusted=true  不删除多于的文件,文件数量自动增加

  • 相关阅读:
    Github markdown页面内跳转
    github gist 无法访问
    Install pyaudio on Ubuntu
    删除链表的倒数第N个节点
    电话号码的字母组合
    最长公共前缀
    盛最多水的容器
    字符串转化整数与回文数
    Z 字形变换
    LeetCode1-5题
  • 原文地址:https://www.cnblogs.com/y593216/p/13533053.html
Copyright © 2011-2022 走看看