Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Deployment of Angular app and ASPNET Core V13.4 in one website #12233


User avatar
0
pliaspzero created

Hi,

how is it possible to Deployment of Angular app and ASPNET Core V13.4 in one website - we want to create release which contains angualr app and ASPNET Core and deploy it to LINUX based container image.

Thanks


4 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi pliaspzero

    You can follow the instructions in the document here. If you want to deploy the Angular and ASP.NET Core applications as a single website under the same URL, you can copy the compiled Angular files (dist folder) to the wwwroot folder of your ASP.NET Core MVC project. This way, the Angular frontend and ASP.NET Core backend will be hosted in the same Docker image and accessible through the same URL.

  • User Avatar
    0
    pliaspzero created

    Ok- there are no Code changes needed?

  • User Avatar
    0
    pliaspzero created

    Plus - how looks the configuration - like this - assuming ServerRootAddress runs under port 8080 ? "ServerRootAddress": "http://localhost:8080/", "ClientRootAddress": "https://client.mycompany.com/", "CorsOrigins": "http://*.mycompany.com,http://localhost:4200,http://localhost:8100,http://localhost:44342,http://localhost:8101,http://localhost:50538,http://localhost:61782",

    ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @pliaspzero

    Yes, this is theoretically correct. Let me know if you are having any issues with this.