当您生成一个lightswitch部署包时,为什么没有< MyProject> .deploy.cmd? [英] When you generate a lightswitch deployment package why is there no <MyProject>.deploy.cmd ?
问题描述
或者换句话说:是否可以从命令提示符(使用msdeploy.exe)部署到目标IIS服务器本身?
Or in other words: is it possible to deploy from the command prompt (with msdeploy.exe) ON the target IIS server itself?
我是否了解webdeploy体系结构正确地说,它实现了一种提供者模式,其中不同的"应用程序类型"。 (如经典的Asp.net或lightswitch)可以插入吗?
Do I understand the webdeploy architecture correctly in the sense that it implements a kind of provider pattern where different "application types" (like a classic Asp.net or lightswitch) can be plugged in?
安装lightswitch的服务器先决条件是否附加了lightswitch 提供者到msdeploy?
Does installing the server prerequisites for lightswitch appends the lightswitch provider to msdeploy?
由于某种原因,没有部署命令文件将部署策略限制为:
For some reason, there is no deploy command file which limits the deployment strategies to:
a)直接从visual studio通过msdeploy.axd服务。这当然是最酷的选择,但企业策略可能会阻止使用它。
a) directly from visual studio via the msdeploy.axd service. This is of course the coolest option, but enterprise policy might prevent using this.
b)从IIS服务器(生成zip包并将其传输到IIS服务器之后)通过IIS管理器 - 在部署菜单上导入应用程序。
b) From the IIS server (after generating a zip package and transfering it to the IIS server) via IIS manager - import application on the deploy menu.
您是否具有将部署与构建服务器上的构建集成的经验?
Do you have experience with integrating the deployment with a build on a build server ?
推荐答案
&NBSP;是的,可以使用msdeploy.exe将在发布期间创建的3层程序包部署到IIS服务器。 msdeploy有很多命令行选项,可以帮助你做到这一点。
Yes it is possible to deploy a 3 tier package created during publish to an IIS server using msdeploy.exe. msdeploy has a plethora of command line options which would help you to do this.
是安装服务器先决条件附加lightswitch提供程序。
Yes installing the server prerequisites appends lightswitch provider.
我有一个命令行参数,您可以根据需要自定义和使用。
I have a command line argument that you can customize and use depending on your needs.
msdeploy.exe -source:package ='{package name}'-dest:auto,ComputerName ='{Servername}?site = Default%20Web%20Site',UserName ='{Username}',Password = '{Password}',IncludeAcls ='False',AuthType ='Basic'-verb:sync -allowUntrusted -setParam:name = DatabaseServer,value ='{SQLServer}'
-setParam:name = DatabaseName,value = '{DBName}' - setParam:name = DatabaseUserName,value ='{Username}' - setParam:name = DatabaseUserPassword,value ='{Password}'-setParam:name ='{Name} _IisWebApplication',value ='{value }'-setParam:name = DatabaseAdministratorConnectionString,value ='{Connectionstring}'
msdeploy.exe -source:package='{package name}' -dest:auto,ComputerName='{Servername}?site=Default%20Web%20Site',UserName='{Username}',Password='{Password}',IncludeAcls='False',AuthType='Basic' -verb:sync -allowUntrusted -setParam:name=DatabaseServer,value='{SQLServer}' -setParam:name=DatabaseName,value='{DBName}' -setParam:name=DatabaseUserName,value='{Username}' -setParam:name=DatabaseUserPassword,value='{Password}' -setParam:name='{Name}_IisWebApplication',value='{value}' -setParam:name=DatabaseAdministratorConnectionString,value='{Connectionstring}'
替换内的值 {}与您的选择。正如您所看到的,命令行选项确实很复杂,一个小错误可能让您想知道如何正确设置。
Substitute the values within { } with your choice. As you can see, the command line option is indeed complex and a small mistake can leave you wondering how to set things right.
谢谢,b
Sandeep
Thanks,
Sandeep
这篇关于当您生成一个lightswitch部署包时,为什么没有< MyProject> .deploy.cmd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!