Open Closed

Question on Deploying an ABP application. #5782


User avatar
0
balessi75 created

ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme

We are deploying our application to an Azure App Service. The application startup exceptions because of the wwwroot/libs folder not existing.

I know that libs folder contents are excluded from source control (.gitignore) and that in a development environment we can run abp install-libs, but in a production deployment process using a DevOps build/release pipeline (running in a MS build agent), how can we accomplish the install-libs functionality for a deployment to an App Service. Can an app service run an ABP CLI command?

Any suggestions is greatly appreciated.

-Brian


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can install abp CLI and run abp install-libs command in your pipeline.

  • User Avatar
    0
    balessi75 created

    Hi @maliming,

    Thank you. Any ideas on how to go about installing the abp CLI in the pipeline?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can install it afer installing the dotnet SDK.

    dotnet tool install --global Volo.Abp.Cli
    

    https://www.nuget.org/packages/Volo.Abp.Cli/

  • User Avatar
    0
    balessi75 created

    Thanks @maliming

    Our pipeline is working now with your help.

    Quick question - should we always be using the latest version of the CLI in the pipeline, even if we are not on the latest version of ABP. For instance, we are on ABP 7.2.1 and using CLI version 7.0.1 (this was the latest CLI version when we upgraded to APB 7.2.1) in development. Should our pipeline target the same version we are using in development or is it safe to just always use the latest version of the CLI regardless of the ABP version.

    Thanks!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    For install-libs command it generally does not need to be kept up to date.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09