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.

5 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.

  • User Avatar
    0
    dhaoo created

    Hi,Why does the microservice version 8.1.3 that I recently created through cli still have this code snippet

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20