经典asp-如何自动化部署-在持续集成环境中

发布于 2024-12-24 19:57:05 字数 798 浏览 3 评论 0原文

我一直在阅读 http: //vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.htmlhttps://michaelbaylon.wordpress.com/2011/ 04/13/managing-sql-scripts-and-Continous-integration/ ...等关于自动化部署和持续集成等,但似乎没有谈论经典asp中的自动化部署除非您进入自动化部署,否则您无法真正进行正确的 CI。

MSDeploy可以部署经典的asp网站吗?如果不是……最好只编写一个构建脚本,将所有文件复制到正确的文件夹,然后启动 IIS?我已经使用 msbuild 和 robocopy msbuild 扩展任务完成了此操作。但是,如何处理不同的环境(QA、开发、登台、生产),没有 Web 配置来放置不同的连接字符串等...据说 msbuild 是配置感知的...但是当没有 Web 时它是如何工作的配置?

因此,带着所有这些问题,我正在努力真正推进为我们的经典 asp 网站创建部署脚本/模块/exe。有谁有任何答案/资源/进一步的问题可以为我指明方向吗?

I've been doing some reading http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html and https://michaelbaylon.wordpress.com/2011/04/13/managing-sql-scripts-and-continuous-integration/ ... etc on automated deployment and continuous integration etc but non of it seems to talk about automated deployment in a classic asp environment and you can't really do proper CI unless you get into automated deployment.

Can MSDeploy deploy a classic asp website? If not ... is it best to just write a build script that copies all the files over to the correct folder and then start up IIS? I've done this using msbuild and the robocopy msbuild extension task. But then how do you handle the different environments (QA, dev, staging, production) there's no web config to put the different connection strings etc ... supposedly msbuild is configuration aware ... but how does that work when there is no web config?

So with all these questions I'm struggling to really move forward with creating a deployment script / module / exe for our classic asp website. Does anyone have any answers / resources / further questions that they can point me in the direction of?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

荒路情人 2024-12-31 19:57:05

Web 部署 (http://www.iis.net/download/WebDeploy) 是一种方法去。您只需针对不同环境自定义部署脚本即可。

您可能会发现此链接很有帮助:
- http://msdn.microsoft .com/en-us/library/ms241740.aspx
- 使用 TFS 2010“构建”经典 ASP

Web Deploy (http://www.iis.net/download/WebDeploy) is the way to go. You just have to customize the deployment script for different environments.

You might find this links helpful:
- http://msdn.microsoft.com/en-us/library/ms241740.aspx
- "Build" Classic ASP with TFS 2010

最美不过初阳 2024-12-31 19:57:05

MSDEPLOY 可以部署任何可以存在于 IIS 中的东西。您可以从现有网站创建一个包,并检查它以查看打包的内容。您应该能够使用它来确定如何从源打包您的网站。

您甚至应该能够从源创建 Visual Studio 项目,以便可以直接使用 Web 发布管道。事实上,没有任何东西可以编译,这一事实不应阻止您指定 .ASP 文件是内容文件。

MSDEPLOY can deploy anything that can live in IIS. You can create a package from the existing web site, and examine it to see what got packaged. You should be able to use that to determine how to package up your site from sources.

You should even be able to create a Visual Studio project from your sources so that you can use the Web Publishing Pipeline directly. The fact that there is nothing there to compile shouldn't stop you from specifying that your .ASP files are content files.

桃气十足 2024-12-31 19:57:05

使用 Cruisecontrol.net 进行结账,我们将其与 msbuild 一起用于自动化部署,效果非常好。我们是一家.Net 商店,但基本上是一样的。 Cruise Control 可以运行脚本,并且可以很好地处理 web.config / global.asa 转换。只要您可以编写脚本,巡航控制就可以处理它。

根据您的开发环境,您也许可以将其连接到巡航控制中。我们使用 TFS,它集成得很好,因此当我们将项目签入不同的分支(Dev、Main、Stage)时,它会自动将站点部署到适当的位置。

部署到我们的生产环境时,我们使用 MSbuild 来移动代码。由于它位于另一个网络位置,我们需要一些可以出去并进行任何必要的服务器更新的东西。

http://cruisecontrol.sourceforge.net/

Checkout using cruisecontrol.net, we use that for our automated deploys along with msbuild and it works great. We are a .Net shop but it's basically the same thing. Cruise Control can run scripts and does handle the web.config / global.asa transformations pretty good. As long as you can script it cruise control could handle it.

Depending on your development environment you might be able to hook it into cruisecontrol. We use TFS and it integrates nicely so when we check items into our different branches (Dev, Main, Stage) it auto deploys the site to the appropriate location.

Deploying to our production environment we use MSbuild to move the code. Since it's in another network location we needed something that could go outside and do any server updates necessary.

http://cruisecontrol.sourceforge.net/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文