Tag: environment-variables

56 votes
14 answers
1.3K views
How do I pass environment variables to Docker containers?

I'm new to Docker, and it's unclear how to access an external database from a container. Is the best

avatar
Louetta
0 1 0 9
asked 07 September, 2021
51 votes
5 answers
2.3K views
How do I delete an exported environment variable?

Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src. During

avatar
Bryant
0 1 0 9
asked 07 September, 2021
46 votes
14 answers
854 views
How to set ASPNETCORE_ENVIRONMENT to be considered for publishing an ASP.NET Core application

When I publish my ASP.NET Core web application to my local file system, it always takes the production-config

avatar
Rufus
0 1 0 9
asked 07 September, 2021
51 votes
7 answers
1.8K views
Read environment variables in Node.js

Is there a way to read environment variables in Node.js code? Like for example Python's os.environ[&apos

avatar
Joseph
0 1 0 9
asked 07 September, 2021
52 votes
15 answers
3.1K views
How to access environment variable values

I set an environment variable that I want to access in my Python application. How do I get its value?

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
56 votes
28 answers
1.8K views
How to get the client IP address in PHP

How can I get the client IP address using PHP? I want to keep record of the user who logged into my website t

avatar
User demo
0 1 0 9
asked 07 September, 2021