将网站部署为持续集成构建的一部分
我开始对我们的网站进行持续集成构建。 我目前有 CI 服务器将站点发布到文件夹中。 下一步是将文件部署到我们的站点。
该站点设置在我们的持续集成服务器上,以便我们可以看到构建的结果。 该站点设置为 IIS 中默认网站下的虚拟目录。 我正在努力解决如何将构建文件部署到站点的问题。 如果我将文件复制/xcopy/robocopy 到虚拟目录的物理目录,我是否应该作为脚本的一部分停止并启动服务器上的 Web 发布服务? 我应该回收应用程序池吗?
稍后将构建移动到 QA 服务器或生产服务器怎么样? 您会使用什么工具来完成此操作?
预先感谢您的帮助!
I am getting started with doing continuous integration builds of our web site. I currently have the CI server publishing the site to a folder. The next step is to deploy the files to our site.
The site set up on our continuous integration server so we can see the results of our build. The site is set up as a virtual directory under the default web site in IIS. I am struggling with how to deploy the build files to site. If I copy/xcopy/robocopy the files files to the virtual directory's physical directory should I stop and start the web publishing service on the server as part of script? Should I recycle the application pool?
What about later moving the build to a QA server or production server? What tool would you use for this?
Thank you in advance for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果它是 ASP.NET 应用程序,xcopying 将修改 web.config,这将卸载应用程序域,因此您不需要停止和启动 Web 发布服务,也不需要回收应用程序池。
If it is an ASP.NET application, xcopying will modify web.config which will unload the application domain so you don't need to stop and start the web publishing service nor recycle the application pool.
看看 Capistrano,它是一个专门为将应用程序部署到服务器而设计的 Ruby 工具。 它将您的代码从 SCM 中检查出来并将其部署到您的服务器。 您可以设置多个服务器环境并告诉它部署到哪个。 一旦您掌握了基本的部署方法,添加新服务器就很容易了。
查看 peepcode 截屏视频,了解 Capistrano 的工作原理。
Take a look at Capistrano, it is a Ruby tool designed specifically to deploy applications to server. It checks your code out of your SCM and deploys it to your server. You can set up multiple server environments and tell it which to deploy to. Once you have the basic deploy recipe working, it is easy to add new servers.
Check out the peepcode screencast to get an idea of how Capistrano works.
查看 Visual Studio 发布管理,您可以在这里找到它: www. Visualstudio.com
Microsoft 从 InRelease 购买该产品。 它将通过所有服务器管理您的解决方案,直至生产。 您可以在每台服务器上设置由不同用户完成的批准,也可以自动化整个过程。
开始工作有点困难,而且由于它仅在 2013 年 11 月 15 日作为 Microsoft 产品发布,因此它相对较新并且没有文档记录。 但是,您可以从 www.colinsalmcorner.com 和本文档 download.microsoft.com。
我现在已经完全整合了它,它让生活变得如此简单。 只需登录 Web 界面即可批准我分配的部署,然后就可以开始了。 它与 TFS 紧密集成。
Look at Visual Studio Release Management, you can find it here: www.visualstudio.com
Microsoft purchase the product from InRelease. It will manage your solution through all your servers right up to production. You can set up approvals on each server to be done by different users or you can automate the whole thing.
It's a bit of a b***h to get working and due to it only being release 15 Nov 2013 as a Microsoft product, it is relatively new and undocumented. However, you can get information from www.colinsalmcorner.com and this document download.microsoft.com.
I have it fully integrated now and it makes life so simple. Simply log into the web interface to approve my assigned deployments and its good to go. It integrates heavily with TFS.