How to deploy Angular 6 with .NET Core 2.0 Web API Application to Microsoft Azure?

前端 未结 1 437
半阙折子戏
半阙折子戏 2021-02-06 12:19

How to deploy Angular 6 with .NET Core 2.0 Web API Application to Microsoft Azure?

I have created ASP.NET Core 2.0 Web API (Server-Side app) application and inside that

1条回答
  •  死守一世寂寞
    2021-02-06 13:10

    I know you ask about how to deploy both the client and the server in a single API app but you should create two Azure Web Apps:

    1. An Azure API App that hosts your .NET core based Web API
    2. A Azure Web App that serves your Angular application (most likely only contains static files) and probably consumes your API app.

    This will allow you to deploy e. g. a fix in the API without the need to redeploy your UI. This also won't add additional costs since you can host both apps in a single App Service plan and will simplify your CI / CD process.

    0 讨论(0)
提交回复
热议问题