Open Closed

Redirects between databases #5769


User avatar
0
Abdulaziz_Alsaffar created

Dears,

I have some requirements which is to create new database for test and how to do the configuration to swap or redirect between the 2 databases without changing the values in OpenIddictApplications table.

regards

  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server )
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

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

    hi

    Please explain your requirements in detail.

  • User Avatar
    0
    Abdulaziz_Alsaffar created

    hi

    When I publish the project I should to change the value of [RedirectUris] column in OpenIddictApplications Table to the URL of what I published on also if I run it locally I must to change it the values of all to localhost

    Can I do configuration to handle that?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You should use the production URL in appsettings.json and then migrate the URL to the production database.

    appsettings.json appsettings.Development.json appsettings.Production.json

  • User Avatar
    0
    Abdulaziz_Alsaffar created

    In my situation the appsettings.Development.json is empty should I do same code of appsetting.json and the appsettings.Production.json isn't in me project how to create it ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0#appsettingsjson

    You can create the appsettings.json by the environment.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19