简体   繁体   English

将Web应用程序部署到生产中的最佳方法

[英]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: 客户:

  • Select 'Release' mode and then right-click to publish. 选择“发布”模式,然后右键单击以发布。
  • Go manually to the publish folder and zip contents. 手动转到发布文件夹和zip内容。
  • Now transfer to server by FTP. 现在通过FTP传输到服务器。

Server: 服务器:

  • Unzip folder contents. 解压缩文件夹内容。
  • Stop IIS. 停止IIS。
  • Deploy new folder contents for web app. 部署Web应用程序的新文件夹内容。
  • Start IIS. 启动IIS。

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.

相关问题 使用 WEB Api 后端部署/发布 Angular 项目的最佳方式 - Best way to deploy/publish Angular project with WEB Api backend 在Web服务器上部署可执行进程的最佳方法是什么? - What's the best way to deploy an executable process on a web server? 将ASP.Net核心Web应用程序编写的微服务部署到生产环境的正确方法是什么 - what is the proper way to deploy microservices written with ASP.Net core web application to production C# 桌面应用程序到 Web 应用程序的最佳方式 - Best way for C# desktop app to Web application 在Azure上部署的.net Web应用程序中存储和执行二进制文件的最佳方法 - best way to store and execute binaries in a .net web app deployed on azure 检测和存储 Web 应用程序客户端所在时区的最佳方法是什么? - What is the best way to detect and store the timezone the client of a web app is in? 在Windows和Web App中处理数据库升级的最佳方法是什么? - What's the best way to process database upgrades in Windows and Web App? 从 winforms 应用程序更新远程 web 数据库的最佳方法 - Best way to update remote web database from winforms app 使用IoC进行生产和测试的最佳方法 - Best way of using IoC for production and Testing .NET Core Web Deploy to production会在发布时删除网站吗? - .NET Core Web Deploy to production takes down site while publishing?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM