I am trying to do something that I thought would be trivial - pulling
in a value from an environment variable.
in my .bash_profile I have:
XML_API=http://192.168.1.5:8080/abp3/webApiXmlRpcServlet
It shows up in the output of typing ‘env’ at the command prompt.
In my environment.rb I have this:
XML_RPC_LOCATION = ENV[‘XML_API’] || ‘http://xxxx/abp3/
webApiXmlRpcServlet’
From console I get:
Loading production environment.
The same thing is happening on my production environment (RH linux)
and on my Mac. So I am sure it is me… I just can’t understand why
the console and the mongrel are different.
I am trying to do something that I thought would be trivial - pulling
in a value from an environment variable.
in my .bash_profile I have:
XML_API=http://192.168.1.5:8080/abp3/webApiXmlRpcServlet
I assume you probably are but are you actually exporting it?
The same thing is happening on my production environment (RH linux)
and on my Mac. So I am sure it is me… I just can’t understand why
the console and the mongrel are different.
It seems like the user you are running your app as doesn’t have access
to the same environment variables. You can put environment variables
on the command line to check if that’s the actual problem.