How can I get IntelliJ to pick up my environment variables on MacOS X?

I tried installing them using RCenvironment, .bashrc, .MacOSX / environment.plist and /etc/launchd.conf and restarted the computer. IntelliJ still does not collect my env variables:

Gemfile p "ENVIRONMENT: # {ENV ['VAR_PRIVATE_GEM_USERNAME']}" # ENVIRONMENTS: "ENVIRONMENT:"

+5
source share
1 answer

See related questions:

Your question does not refer to IntelliJ IDEA at all.

In Mountain Lion, the solutions from the first link will not work, so you can do something like this in the terminal:

export VAR_PRIVATE_GEM_USERNAME=John
open -a /Applications/IntelliJ\ IDEA\ 11.app/

, Run/Debug IntelliJ IDEA :

enter image description here

+10

All Articles