WebDeploy with MSBuild Not Deploying from TeamCity

前端 未结 6 1367
不思量自难忘°
不思量自难忘° 2021-02-08 13:34

I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command:

msbu         


        
6条回答
  •  借酒劲吻你
    2021-02-08 13:50

    We do our WebDeploys with a TeamCity MSBuild step configured as follows:

    Build File Path:  Server.csproj
    
    Command Line Parameters:
    /p:Configuration=%configuration%
    /p:DeployOnBuild=True 
    /p:DeployTarget=MSDeployPublish
    /p:MsDeployServiceUrl=https://%web.deploy.server%:8172/MsDeploy.axd
    /p:DeployIisAppPath=%web.deploy.site% 
    /p:AllowUntrustedCertificate=True
    /p:Username=
    /p:AuthType=NTLM
    

    We use integrated authentication; change as necessary to fit your scheme. The value of this, I think, is that it builds everything from scratch and doesn't rely on a pre-built package. From the gist you posted I noticed that you do some DB publishing, we don't use WebDeploy for that so I can't offer any guidance there. Hope this helps.

提交回复
热议问题