Starts in:
0 DAY
1 HR
11 MIN
49 SEC
Starts in:
0 D
1 H
11 M
49 S
Open Closed

appsettings.<Environment>.json not working #729


User avatar
0
JmBdo created

We want developers using appsettings.json for their local development and using appsettings.<Environment>.json to overwrite settings in different environments, based on the ASPNETCORE_ENVIRONMENT variable.

<br> It seems not working out of box.

What is the easiest way to make this work?

Best regards!


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It has nothing todo with ABP and it works out of the box.

  • User Avatar
    0
    JmBdo created

    Thanks @liangshiwei, it works in local. But after deploying it to Azure app services, we still have to use DevOps tasks to update the app settings. We will investigate more.

  • User Avatar
    0
    alper created
    Support Team Director

    it's probably related to your Azure settings. because it's a native feature of dotnet core. ABP doesn't add anything on top of aspnet configuration feature.

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