自动部署到多个生产环境
我想要将 ASP .NET Web 应用程序(包括 web.config 文件更改和数据库脚本)更新到多个生产环境 - 最好只需单击一个按钮即可。我与其中任何一个都没有直接的网络连接。我认为这意味着应用程序服务器必须“提取”更新应用程序所需的信息,并运行脚本来更新驻留在服务器上的应用程序。
基本上,我需要一种方法来“发布”更新,并且服务器会看到该更新并自动下载并运行它。
我考虑过可能设置一个 SFTP 服务器来发布更新,并开发一个安装在生产环境中的自定义工具,该工具每天都会查看 SFTP 服务器并下载应用程序文件(如果可用)。这至少可以将所需的文件发送到服务器上,并且我可以使用 xcopy/robocopy 和 Migrator.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 good solution for this scenario? Are there any tools that do this for you?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为拉动而不是推动策略有点炫耀传统智慧......但这似乎是 CruiseControl.NET 可以轻松做到的事情。请记住,web.config 文件也是一个 XML 文档,因此可以在 CruiseControl 脚本中轻松修改。您可以复制文件或使用 svn 导出。
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
请查看上面提到的博客,我已经发布了有关使用 SVN 自动部署 .NET 应用程序的详细信息。
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.