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

How to automatically update all settings from appsettings.json to appsettings.production.json #6004


User avatar
0
mgarcia created

Each time I deploy in release got to update appsettings.production.json manually.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Can you talk about it specifically? There are set reference documents here. https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-2.1

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mgarcia

    You need to create your own build pipeline. AspNet Zero doesn't provide a solution for that. For example, you can ignore appsettings.production.json from build pipeline so existing file on the server will not be overwritten.