Imported from the Apple Support Forums via the Wayback Machine 🔗
I need to set the environment variable for use in a web application. I don´t know how to create for use in Mojave OS. Can anyone give me some directions for setting that environment variable.
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hello Jhon,
I am developing a web application and I need to read data from an environment variable. I wrote export VARIABLE = /path/file.properties in the file /etc/profile but the application does not find that variable when executing.
When I execute in the terminal app then next command launchctl setenv VARIABLE $ VARIABLE finds it, but every time I restart my MAC, I have to enter at terminal app and run launchctl .....
How to permanently set environmet variable?
Thank you.
0
david_jhm·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks very much, John, for this helpful solution.