开发者

Automatic Deployment to Multiple Production Environments

开发者 https://www.devze.com 2022-12-10 11:18 出处:网络
I want to update an ASP .NET web application (including web.config file changes and database scripts) to multiple production environments - ideally with the click of a button. I do not have direct net

I want to update an ASP .NET web application (including web.config file changes and database scripts) to multiple production environments - ideally with the click of a button. I do not have direct network connectivity to any of them. I think this means the application servers will have to "pull" the information required for updating the application, and run a script to update the application that resides on the server.

Basically, I need a way to "publish" an update, and the servers see that update and automatically download and run it.

I've thought about possibly setting up an SFTP server for publishing updates, and developing a custom tool which is installed on production environments which looks at the SFTP server every day and downloads application files if they are available. That would at least get the required files onto the servers, and I could use xcopy/robocopy and Migrator.NET to deploy the updates. Still not sure about config file changes, but that at least gets me somewhere.

Is there any 开发者_如何学Pythongood solution for this scenario? Are there any tools that do this for you?


I think the pull rather than push strategy somewhat flaunts conventional wisdom... but this seems like something CruiseControl.NET could easily do. Remember the web.config file is also an XML document, so is easily modifiable in a CruiseControl script. You could xcopy files or use an svn export.


http://varunkumargoel.blogspot.com/2010/03/how-to-make-automatic-deployment-for.html

Please view the above mentioned blog there i have posted details regarding automatic deployment of .NET application with SVN.

0

精彩评论

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