Why RubyMine does not see environment variables?
I have installed TorqueBox for Rails deploying (Mac OS-X 10.6.1 - Snow Leopard). I also put "export JBOSS_HOME=..." into /etc/profile and I can confirm that this variable can be seen from shell The problem is, when I run rake tasks from RubyMine. E.g Tools -> Rake Tasks -> torquebox -> rails -> server ->check shows that RubyMine cannot see the environment.
/opt/jruby/bin/jruby -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) /opt/jruby/bin/rake torquebox:server:check --trace
** Invoke torquebox:server:check (first_time)
** Execute torquebox:server:check
$JBOSS_HOME is not set
but from shell...
$ echo $JBOSS_HOME
What's going on?