简体   繁体   English

使用HTML5 / Javascript项目部署解决方案,并在IIS上单独部署ASP.NET Web API项目

[英]Deploy a solution with HTML5/Javascript project and separate ASP.NET Web API project on IIS

I am working on a website with AngularJS client part an a ASP.NET Web API backend. 我正在使用AngularJS客户端部分和ASP.NET Web API后端的网站上工作。 The website is separated in two "projects", a regular Visual Studio project for the backend, and, with no HTML projects template in Visual Studio, another ASP.NET project for the HTML part. 该网站分为两个“项目”,一个用于后端的常规Visual Studio项目,以及Visual Studio中没有HTML项目模板,另一个用于HTML部分的ASP.NET项目。 This part is managed and build with Grunt to a dist/ subfolder. 这部分是使用Grunt管理和构建到dist /子文件夹。

I would like to deploy this website on Amazon EC2, in a Windows Server 2012 with IIS. 我想在带有IIS的Windows Server 2012中的Amazon EC2上部署此网站。 I however haven't found how to package the app, modify the solution or configure IIS to make that work. 但是,我还没有找到如何打包应用程序,修改解决方案或配置IIS以使其工作。 Ideally, IIS should serve the static files with any request except requests on http://website/api , which should be redirected to the Web API backend. 理想情况下,IIS应该使用除http:// website / api上的请求之外的任何请求来提供静态文件,这些请求应该重定向到Web API后端。

I am using Visual Studio 2015. 我正在使用Visual Studio 2015。

Any help will be greatly appreciated. 任何帮助将不胜感激。

If AWS supports WebDeploy, you could use the Publish feature, then create a new WebDeploy package for the web application project. 如果AWS支持WebDeploy,则可以使用“发布”功能,然后为Web应用程序项目创建新的WebDeploy包。 If AWS supports WebDeploy, you could then use this created package to publish to AWS. 如果AWS支持WebDeploy,则可以使用此创建的包发布到AWS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM