msdeploy

What is up with this PowerShell command line quoting/escaping?

人盡茶涼 提交于 2020-01-01 04:25:08
问题 I obviously don't know what I'm doing. I have finally got this PowerShell command to work. But I can't figure out why it works. My concern is the final "" characters: &"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" ` -verb:sync ` -source:contentPath="$build_directory\deploy" ` -dest:contentPath="$server_temp_directory,computerName=$server,username=$server_username,password=$server_password" ` -verbose ` -postSync=runCommand="powershell -NoLogo -NoProfile -Command $server_temp

Is MSDeploy “friendly” enough, or can it be wrapped up in an MSI file

只愿长相守 提交于 2020-01-01 03:23:09
问题 In your opinion, are MSDeploy packages a good option for giving to an end user to install a webapplication on their system. How does it compare with, say, the experience of using an MSI file to install a web app? Has anybody tried wrapping up an MSDeploy package inside an MSI package? Would it work? 回答1: MSDeploy was described to me as a tool that helps synchronize web sites between machines, much in the way that AppCenter used to replicate a well configured master to many machines. The

MSDeploy doesn't deploy to remote server using MSBuild and Visual Studio 2010

拟墨画扇 提交于 2019-12-31 12:23:29
问题 I'm currently running Visual Studio Team System 2010 RC and I'm trying to get the Build Service setup to build my solution and deploy 3 web applications in it. I've created a custom build configuration called Integration and I've setup the "IIS Web site/application name to use on the destination server" on the Package/Publish tab of the Properties for each of the web applications. In my Build Definition I've set the following arguments: /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p

Web Deploy - Using Relative Paths for local file system deployment

馋奶兔 提交于 2019-12-31 11:43:47
问题 I am wanting to use Web Deploy to run a custom deployment setup. As I am wanting to have this work fine when running on many different environments (team members local machines, 4 different builds servers) I want to deploy to a local path that is relative. What I am wanting to do is: Deploy to a local relative path Have the after build step do magical things... However when i enter the local file path to deploy to as: "..\Deploy_Production" web deploy complains with this: 2>Connecting to ..

MSDeploy all configuration [.config files] in one package

白昼怎懂夜的黑 提交于 2019-12-30 04:50:08
问题 We have 4 different environments at the moment (Lab, Test, Stage, LIVE) and we have implemented automatic deployment using Nant/CC.Net. I am investigating and doing some research as to what can be done more efficiently with new MSDeploy tool. What I want to achieve is to create a package with a Configuration folder inside which we will have all the different configuration files for all the possible environments (basically adding all config transform files) What I want to achieve is automatic

401 Unauthorized error with WebDeploy using non-administrator user

拈花ヽ惹草 提交于 2019-12-30 03:00:06
问题 <TLDR> Is it at all possible to use ms web deploy to deploy a web application to a remote host from the command line with a non-administrator user? </TLDR> I have followed every point in Microsoft's guide for Installing and Configuring Web Deploy. My goal is to be able to do a remote web deploy with an IIS user/non-administrator user. After doing all the steps as described under Install and configure web deploy for non-administrator deployments , I get the following log messages (indicating

TFS2010 Build Definition to Deploy to multiple servers?

南笙酒味 提交于 2019-12-29 05:24:06
问题 I've been looking into TFS2010 new build and deployment features with MSDeploy. So far everything is going well (although its been hard to find information about specific scenarios). Can I modify my Build Definition to specify 2 or more servers to deploy to? What I need to do is deploy to multiple servers (as I have two in my testing environment which uses a NLB). What I have now is a Build definition which Builds, runs my tests, and then Deploys to ONE of my testing servers (which has the

How to execute a PowerShell script only before a web deploy Publish task in VS 2012?

允我心安 提交于 2019-12-28 05:21:30
问题 Currently I have a post-build event configured in my web project using Visual Studio 2012 like this: This basically calls a PowerShell script to add a copyright notice to every .cs file. What I'd like to do is to execute this powershell script only before Publishing the web app to the remote server. Doing so I won't experience a delay every time I need to debug the project. Do you know of any way of accomplishing this? According to Sayed's answer, I customized a specific publish profile and

How do I get msdeploy to create App_Data if it doesn't exist, but not delete any contents of the remote directory?

痞子三分冷 提交于 2019-12-28 03:43:06
问题 I have an application setup with the following Package/Publish Web settings: Only files needed to run this application (unchecked) Exclude generated debug symbols (checked) Exclude files from the App_Data folder (checked) Include all databases configured in Package/Publish SQL tab - note I do not have any databases configured (unchecked) include IIS settings as configured in IIS Express In the project, I have an App_Data folder setup, primarily to handle application logs. The behavior I'd

autostart website after web deploy

血红的双手。 提交于 2019-12-25 08:13:12
问题 I have a IIS website with multiple application connected to the same app pool and I deploy regularly some of those website through web deploy with the msdeploy tool. One of this app is set to autostart with the serviceAutoStartEnabled="true" and a matching serviceAutoStartProvider . It works well when I restart the whole app pool but the autostart is not triggered when I web deploy the website Is there any way to tell IIS to "restart" fully the website after the deploy and not wait for the