有什么能部署ASP.Net Web应用程序的好方法? [英] What could be good ways to deploy ASP.Net Web Applications?

查看:96
本文介绍了有什么能部署ASP.Net Web应用程序的好方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们通过创建一个数据库,并通过查询分析器运行SQL脚本部署Web应用程序。然后,我们复制输出发布网站,并建立了该网站在IIS中。

We currently deploy web applications by creating a database and running SQL scripts through query analyzer. Then we copy the output from "publish website" and set up that website in IIS.

我们已经在视觉工作室websetup看到,但该部分似乎被薄薄地记录。例如,我们并不清楚怎么问SQL服务器的知识产权的用户名和密码。我们也往往会得到部署这种方式下,如 http://example.com/project 文件夹上来的网站,而不是仅仅的 http://example.com

We have seen websetup in visual studio, but that part seems to be thinly documented. For example, we are not clear how to ask the user for IP and password of SQL server. We also tend to get websites deployed this way coming up under folders like http://example.com/project, instead of just http://example.com.

然后是与AJAX.Net未安装或某些或其他补丁不适用。问题

Then there are issues with AJAX.Net not being installed or some or the other patch not applied.

到目前为止,我们对服务器的物理访问。 pretty尽管很快我们将要出货CDROM的。什么是人工干预和自动化之间的权衡实用?

So far, we have physical access to the servers. Pretty soon though we are going to be shipping CDROMs. What is the practical tradeoff between manual intervention and automation?

推荐答案

避免Visual Studio中的部署,并自动尽可能。 Web部署项目和楠可以成为你的朋友!

Avoid Visual Studio deployment, and automate as much as possible. Web Deployment Projects and NAnt can be your friends!

简单地说,我们的部署设置:

Briefly, our deployment setup:


  1. 我们使用展鹏SQL来开发和实时数据库之间的差异的脚本。

  1. We use RedGate SQL to script differences between dev and live database.

它调用MSBUILD构建Web部署项目(.wdproj),拉链因此产生编译Web应用程序(与SQL更改脚本一起),然后上传zip文件到服务器楠构建文件。

An NAnt build file which calls MSBUILD to build the web deployment project (.wdproj), zips up the resulting compiled web app (along with the SQL change script) and then uploads the zip file to the server.

在服务器端,还有一个NAnt构建文件,该文件需要的应用程序脱机,备份数据库,备份网站。运行SQL更改脚本,解压新的版本和网络带来的应用程序。

On the server side, there is another NAnt build file which takes the application offline, backs up the database, backs up the website. runs the SQL change script, unzips the new version and brings the app online.

步骤3通常是手动(1双击)运行,但有时安排在深夜进行。你可以从CDROM做完全一样,甚至写一个pretty小的Windows窗体应用程序作为一个包装。

Step 3 is usually run "manually" (one double-click), but sometimes scheduled for late at night. You could do exactly the same from a CDROM, or even write a pretty little Windows Forms app as a wrapper.

很高兴如果你有兴趣给楠脚本的详细信息。

Quite happy to give details of the NAnt script if you're interested.

这篇关于有什么能部署ASP.Net Web应用程序的好方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆