问题描述
我有一个ASP.NET项目5,我想将其部署到远程服务器。我没有到本机远程桌面访问,否则我可以按照同样的方法,大多数人都部署到IIS时使用。
I've got an ASP.NET 5 project that I'd like to deploy to a remote server. I don't have remote desktop access to this machine, otherwise I could follow the same method most people use when deploying to IIS.
我能够部署到我的IIS 8.5就好在同一台机器我的开发上。首先,我打包我的项目,以获得为approot和wwwroot文件目录。然后,我点IIS我的wwwroot和一切工作正常。
I'm able to deploy to my IIS 8.5 just fine on the same machine as my development. First I package my project to get the approot and wwwroot directories. Then, I point IIS to my wwwroot, and all works fine.
问题是尝试远程部署。通常我会拉上我的 MVC 5 项目和使用IIS GUI来进口的应用程序。
The problem is trying to deploy remotely. Normally I would zip up my MVC 5 project and use the IIS gui to 'import' an application.
这不适合我的 MVC 6 项目。要么我荏苒它不正确或MVC 6个项目不能部署这种方式。
That doesn't work for my MVC 6 project. Either I'm zipping it up incorrectly or MVC 6 projects can't be deployed this way.
如何发布应用程序vNext到远程IIS服务器?
编辑:
仅供参考,我使用微软的Web部署远程代理这一部署到服务器。 http://www.asp.net/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-(remote-agent)
Just FYI, I am using Microsoft's Web Deploy Remote Agent to deploy this to the server. http://www.asp.net/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-(remote-agent)
它完美的MVC应用5,因为开发人员可以轻松地部署Web应用程序和IT部门可以限制访问计算机,但问题是试图用此代理部署MVC应用程序6
It works perfectly for MVC 5 apps, because developers can easily deploy web apps and IT can restrict access to the machines, but the problem is trying to deploy MVC 6 apps using this agent.
我不是质疑如何部署MVC 6个项目到IIS,因为这已经回答的,这是关于如何远程部署以IIS。
I'm not questioning how to deploy MVC 6 projects to IIS, because that's already answered Here, this is concerning how to remotely deploy to IIS.
推荐答案
我解决了这个通过更新为 Web部署3.6 。最新版本包括部署ASP.NET 5应用程序的专业提供商。
I solved this by updating to Web Deploy 3.6. The newest version includes a specialized provider for deploying ASP.NET 5 applications.
这是如何使用它详细资料可以在这篇博客文章中找到:
http://azure.microsoft.com/blog/2014/08/11/web-deploy-3-6-beta-released/
Details on how to use it can be found with this blog post:http://azure.microsoft.com/blog/2014/08/11/web-deploy-3-6-beta-released/
下载链接如下:
<一href=\"http://www.microsoft.com/en-us/download/details.aspx?id=43717\">http://www.microsoft.com/en-us/download/details.aspx?id=43717
使用 contentPathLib 提供商或启用的 contentlibextension
实例:
C:\\ Program Files文件(x86)的\\ IIS \\微软Web部署V3> msdeploy
-verb:同步 - 源:iisapp =的 C:\\发布\\发布\\ wwwroot文件的-dest:iisapp =默认Web站点/ ExampleApp中的计算机名= 计算机名的-enablelink:contentlibextension
据我所知,没有支持这些部署方法还没有一个GUI。我想这是因为vNext是处于测试阶段,预计将有重大更改。
To my knowledge, there isn't a GUI supporting these deployment methods yet. I assume this is because vNext is in Beta, and is expected to have breaking changes.
这篇关于远程发布ASP.NET 5到IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!