-1

I am running a nestJS app on an Azure Linux AppService. I have added Application Settings within the appService, but I can't seem to get the app to pull through the value.

one of the appSettings is process.env.DB_Host with value mysqlserveraddress but when the app starts it says it cannot connect to process.env.DB_Host rather than the mysqlserveraddress

How do I pass these values in?

Thanks

Tommy

1 Answers1

0

I am using below code to check the Environment Variable in my Linux App Service.

enter image description here

I can see the entire Environment variables which is available in my Linux App Service.

And same I had added my App Settings in my Linux App Service.

enter image description here

enter image description here

Now I am specifically get the AppSettings Value in App.js and deployed in App Serive.

enter image description here

Now, I can get the Environments variable.

enter image description here

Delliganesh Sevanesan
  • 4,146
  • 1
  • 5
  • 15