与 ASP.NET MVC 网站一起部署 ASP.NET 网站
我正在为一家公司网站进行升级。目前它正在使用普通 ASP.NET 进行生产。为了升级,我将框架切换到 ASP.NET MVC。
我已准备好部署该网站的测试版。我已经在本地测试了它,方法是在 IIS 中创建另一个网站,然后将已发布的文件复制到那里;有效。我只能通过 FTP 访问生产 Web 服务器。我尝试将这些相同的文件复制到根路径上的子目录中,但它不会加载网站。
我如何将 ASP.NET MVC 项目与现有的普通 ASP.NET 一起部署,以便我只需 www.mycompany.com/beta 即可访问测试站点?
I am working on an upgrade for a company website. It currently in production using vanilla ASP.NET. For the upgrade I switched the framework to ASP.NET MVC.
I am ready to deploy a beta version of the website. I have tested it locally by creating another website in IIS and just copying the published files there; that works. I only have access to the production web server through FTP. I tried copying those same files into a subdirectory on the root path, but it won't load the website.
How would I go about deploying the ASP.NET MVC project alongside the existing vanilla ASP.NET so that I can get to the beta site with just www.mycompany.com/beta?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您必须将 beta 文件夹放入虚拟目录中,以便它获得自己的应用程序。
这必须通过 IIS 管理器来完成,不能通过 FTP 来完成。在 IIS 7.5 中,右键单击目录时有一个菜单选项可将目录转换为应用程序(“转换为应用程序”)。在这种情况下这会很有用。
我建议您请求一个子域,例如 beta.mycompany.com,这样它将有自己的应用程序可以运行。
I believe you would have to make the beta folder into a virtual directory so that it gets its own Application.
This has to be done through the IIS manager, and can't be done through FTP. In IIS 7.5 there is a menu option for converting a directory to an application ("Convert to Application") when right clicking on a directory. That would work great in this case.
I would suggest that you ask for a subdomain instead, e.g. beta.mycompany.com, that way it will have its own application to run in.