[英]Best way to deploy a web app to production
My technique for deploying an ASP.NET webapp into production is as follows: 我将ASP.NET Web应用程序部署到生产中的技术如下:
Client: 客户:
Server: 服务器:
I don't stop the database or run any additional tools to promote to production. 我不会停止数据库或运行任何其他工具来推广到生产。 It's a small company, and this seems fine. 这是一家小公司,这看起来还不错。 What's wrong with this technique in your opinion? 您认为该技术有什么问题?
You dont need to ZIP. 您不需要ZIP。 Just publish via PUBLISH in the VS to your server. 只需通过VS中的PUBLISH发布到您的服务器即可。 IIS processes will be killed and be restarted anyhow. IIS进程将被杀死并以任何方式重新启动。
Check this out http://www.iis.net/download/webdeploy 查看此http://www.iis.net/download/webdeploy
Web Deployment Tool works with both IIS6 and IIS7 and enables automated copy deployment, file synchronization, and migrating of applications onto web servers. Web部署工具可与IIS6和IIS7一起使用,并支持自动副本部署,文件同步以及将应用程序迁移到Web服务器上。
Scott Hanselman did a presentation about the web deployment stuff in VS at MIX in 2010: Scott Hanselman在2010年的MIX上做了一个有关VS中的Web部署内容的演讲:
http://channel9.msdn.com/Events/MIX/MIX10/FT14 http://channel9.msdn.com/Events/MIX/MIX10/FT14
Scott could probably do an entertaining presentation about drying paint, so it's worth a look if you have a chance. 斯科特可能会做一个有趣的演讲,介绍干燥油漆,所以如果有机会的话,值得一看。
The only thing wrong with your approach is the manual intervention needed. 您的方法唯一的问题是需要手动干预。 I strongly encourage you to read Continuous Delivery . 我强烈建议您阅读持续交付 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.