部署ASP.NET应用到远程服务器 [英] Deploy ASP.NET app to remote server

查看:118
本文介绍了部署ASP.NET应用到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个解决方案,在一个服务器上的其他远程Web服务器部署从SVN ASP.NET应用程序。 FTP是不允许的。比文件拷贝等任务应该做的 - 例如,创建虚拟目录。

I am looking for a solution to deploy ASP.NET application from SVN in one server to other remote web server. FTP is not allowed. Other tasks than file copy should be done - e.g. create virtual directory.

你会使用哪些工具?远程服务器可以安装的MSBuild或恶性,但如何安全地从SVN服务器上的文件复制到Web服务器?也许SSH?是否有其它方法吗?是否有可能对文件复制一个原子操作?我不认为持续集成服务器会帮助我。

Which tools would you use? Remote server could have MSBuild or NAnt installed but how to securely copy files from SVN server to web server? Maybe SSH? Are there any alternatives? Is it possible to have an atomic operation on file copy? I do not think that Continuous Integration servers would help me.

这两个SVN服务器和Web服务器使用的是Windows内置2K3,IIS 6.0,.NET 2.0。

Both SVN and web servers are built using Windows 2k3, IIS 6.0, .NET 2.0.

修改

部署应使用SVN后提交挂钩是自动的。

deployment should be automatic using SVN post commit hook.

推荐答案

我使用PSEXEC从Sysinternals的(的 http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx )远程调用我的钩子脚本的svn命令。基本上,只要有人在生产分公司检查的东西,它在远程服务器上调用SVN更新,并将更新被拉入生产。

I use psexec from sysinternals (http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx) to remotely call svn commands in my hook script. Basically, whenever anyone checks something in to the production branch, it calls svn update on the remote server and the updates get pulled into production.

这可能会或可能不会取决于哪些端口是两个服务器之间的公开工作。

This may or may not work depending on what ports are open between the two servers.

这篇关于部署ASP.NET应用到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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