Deploy the solution with HTML5 / Javascript project and open ASP.NET Web API project in IIS

I am working on a website with AngularJS client part and is the ASP.NET web API backend. The website is split into two "projects", a standard Visual Studio project for the backend and no HTML projects template in Visual Studio - another ASP.NET project for the HTML part. This part is managed and built with Grunt in the dist / subdirectory.

I would like to deploy this site to Amazon EC2 on Windows Server 2012 with IIS. However, I have not found how to package the application, change my mind, or configure IIS to do the job. Ideally, IIS should serve static files with any request other than requests to http: // website / api , which should be redirected to the Web API server.

I am using Visual Studio 2015.

Any help would be greatly appreciated.

+3


source to share


1 answer


If AWS supports WebDeploy, you can use the publish feature and then create a new WebDeploy package for the web application project. If AWS supports WebDeploy, you can use this generated package to publish to AWS.



0


source







All Articles