Starts in:
0 DAY
17 HRS
27 MIN
14 SEC
Starts in:
0 D
17 H
27 M
14 S
Open Closed

Issue with Hosting Environment #2616


User avatar
0
viswajwalith created
  • ABP Framework version: v5.2
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes

We are facing the issue while picking the Hosting Environment on our QA/Staging server. Even after defining the Environment variable as "QA" ,

Once we deploy the application, we are getting the Hosting Environment still as "Production"

are we missing anything here?


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

    HI

    Can you check the web.config?

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-6.0#windows---use-webconfig

  • User Avatar
    0
    viswajwalith created

    HI

    Can you check the web.config?

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-6.0#windows---use-webconfig

    By default we don't have any value for "environment" defined in web.config. If we add the below additional settings in web.config the environment is picking as defined in the file

    Setting the deployment environment in a web.config is one of the option but ideally it should pick from Environment Variable right? also for us defining in every microservice is bit lengthy process. can u check the same at ur end and let me know the possible fix for the same.

  • User Avatar
    0
    viswajwalith created

    HI

    Can you check the web.config?

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-6.0#windows---use-webconfig

    By default we don't have any value for "environment" defined in web.config. If we add the below additional settings in web.config the environment is picking as defined in the file

    Setting the deployment environment in a web.config is one of the option but ideally it should pick from Environment Variable right? also for us defining in every microservice is bit lengthy process. can u check the same at ur end and let me know the possible fix for the same.

    Hi I found the issue, I made a silly mistake. created the user environment variable insisted of system environment variable. Once I created the ASPNETCORE_ENVIRONMENT under system environment variable it worked perfectly.

    Thanks for the support.

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