部署 ASP.NET 应用程序:推与拉?
如何部署 ASP.NET 应用程序?您是否使用 UNC 路径/映射驱动器将其推送到生产服务器? FTP? SFTP? SSH/SCP(通过安装的第 3 方应用程序)?还有别的事吗?或者您是否使用源代码控制更新或其他机制从生产服务器中提取它?考虑生产服务器位于互联网或 DMZ 中,推送需要打开不安全的防火墙端口(对于 UNC 或 FTP),不是吗?
我正在努力巩固我的 ASP.NET 部署理念。我理想的一键式构建/部署过程将包括以下部分:MSBuild、Web 部署项目、CruiseControl.NET。但是,我仍然在努力解决如何将这些位实际交付到生产服务器的问题。
在 Windows 和 *nix 平台上度过了一段时间后,我对 Windows 部署故事感到沮丧,因此很好奇其他人是如何做到这一点的。
How do you deploy ASP.NET applications? Do you push it to production servers using UNC paths/mapped drives? FTP? SFTP? SSH/SCP (via 3rd party app installed)? Something else? Or do you pull it from the production servers with a Source control update or other mechanism? Consider the production servers being on the internet or in a DMZ, push requires opening insecure firewall ports (for UNC or FTP) does it not?
I'm trying to solidify my deployment philosophy for ASP.NET. The pieces that my ideal one-click build/deploy process will include are: MSBuild, Web Deployment Projects, CruiseControl.NET. But, I still struggle with how to actually deliver the bits to the production server.
After spending time on both Windows and *nix platforms, I get frustrated with the Windows deployment story and so am curious how others are doing this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 Cruisecontrol.net,对此非常满意。我有一个 Cruise Control 调用的 nant 脚本:
效果很好!一年前我们过去都是手动完成这一切,我无法告诉你这有多好。有一个小的学习曲线和一些预先的脚本编写。这可能需要几天的时间,但最终您会节省更多时间。
I use cruisecontrol.net and am very happy with it. I have a nant script that cruise control calls which:
Works great! We used to do this all manually a year ago and I can't tell you how much better this is. There is a small learning curve and some upfront script writing. That might take a couple days but you will save much more time in the end.
这就是我们发布的方式:
(但是,我们其中一台前端服务器遇到了一些硬件问题,因此作为短期(?)解决方案,我们必须借用另一台服务器作为字体端服务器,并且脚本不会将文件复制到因此,在过去一年左右的时间里,我不得不使用远程桌面登录到实时服务器,手动复制文件,将当前文件移动到备份文件夹并将新文件移动到位。)
This is how we publish:
(However, we had some hardware problems with one of the front end servers, so as a short term (?) solution we got to borrow another server as font end server, and the script doesn't copy the files to that server. So the last year or so I have had to use remote desktop to log on to the live server, manually copy the files, move current files to a backup folder and move new files in place.)