Open Closed

abp Microservice #9272


User avatar
0
dhaoo created
  • When I was running the microservice, I found that if the current environment was not the dev environment, the identity would reset my application. Is this considered a bug? If the identity service restarts after I publish the microservice to the production environment, wouldn't all the applications I added previously be reset.

4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, unfortunately, the image quality is not good enough to be seen in the related code. So, can you please share it as a code or send a better image?

    Regards.

  • User Avatar
    0
    dhaoo created

    Hi, unfortunately, the image quality is not good enough to be seen in the related code. So, can you please share it as a code or send a better image?

    Regards.

    hi,

  • User Avatar
    0
    dhaoo created

    The comment section is the logic for resetting the application if it is not in the dev environment

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, we fixed this problem a long time ago. We moved the related database migration logic to OnPreApplicationInitializationAsync method and didn't add any conditions like in the figure you shared:

    In your code, you can remove the environment condition, it's wrong as you said.

    Regards.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 12, 2025, 05:22