开发者

Deploying nested bin folders using MSDeploy

I am trying to deploy Orchard using WebDeploy.

Orchard has the following folder structure, Orchard.Web is the root of my web application

Deploying nested bin folders using MSDeploy

When i do a WebDeploy all bin folders that sit outside the root are not included in the package. Is there a way to include them?

Here are my deployment settings used by MSBuild

/p:DeployOnBuild=True

/p:DeployTarget=MSDeployPublish

/p:MSDeployPublishMethod=开发者_JS百科WMSVC

/p:MsDeployServiceUrl=https://myserver:8172/msdeploy.axd

/p:username=User

/p:password=

/p:DeployIisAppPath=SiteName

/p:AllowUntrustedCertificate=True


By design: you do not want these folders. They are rigorously useless and just an artifact of VS compilation.


You can turn off dynamic compilation if you rename Config\Sample.HostComponents.config to HostComponents.config in your Orchard.Web directory. This would allow you to compile your solution statically and you may be able to get away with not having your source on the server. In my experience though, Orchard doesn't really like running in static compilation mode, and this can have undesired side-effects.


You can WebDeploy an Orchard solution when you are in Release, from Visual Studio. If you look at the project file you will find some custom steps which enable it, like copying all Themes and Modules to the right location.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜