简体   繁体   English

自动部署到多个生产环境

[英]Automatic Deployment to Multiple Production Environments

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. 我想将ASP .NET Web应用程序(包括web.config文件更改和数据库脚本)更新为多个生产环境-理想的情况是单击按钮。 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. 我曾考虑过可能要设置一个SFTP服务器来发布更新,并开发一个自定义工具,该工具将安装在生产环境中,该环境每天都会查看SFTP服务器并下载可用的应用程序文件。 That would at least get the required files onto the servers, and I could use xcopy/robocopy and Migrator.NET to deploy the updates. 这样至少可以将所需文件下载到服务器上,并且我可以使用xcopy / robocopy和Migrator.NET部署更新。 Still not sure about config file changes, but that at least gets me somewhere. 仍然不确定配置文件的更改,但这至少使我有所了解。

Is there any good 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. 我认为拉而不是推策略在某种程度上炫耀了传统知识……但这似乎是CruiseControl.NET可以轻松做到的事情。 Remember the web.config file is also an XML document, so is easily modifiable in a CruiseControl script. 请记住,web.config文件也是XML文档,因此可以在CruiseControl脚本中轻松进行修改。 You could xcopy files or use an svn export. 您可以xcopy文件或使用svn导出。

http://varunkumargoel.blogspot.com/2010/03/how-to-make-automatic-deployment-for.html 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. 请查看上面提到的博客,我在那里发布了有关使用SVN自动部署.NET应用程序的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM