You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this ticket here: https://jira.codehaus.org/browse/JRUBY-1579 , but it still seems to be an unresolved issue. I saw Jay's comment about the inability to promote ENV variables from inside the JRuby process, and wanted to know if this is still the case.
If so, it might be easier to have capistrano supply the ENV variable, but it would be nice to be able to do this in code.
The text was updated successfully, but these errors were encountered:
I am quite sure that you can not change environment variables java sees via java.lang.System.getenv
then JVM can run several JRuby runtimes. suppose one runtime sets ENV['TZ'] = 'UTC' and the other sets ENV['TZ'] = 'GMT' and both runtimes uses the underlying java.lang.System.getenv
I have a rails app adding an environment variable in one of the initializers like so:
ENV['TZ'] = 'UTC'
When I start the application the ENV variable appears in Ruby, but not in the Java module.
without passing in ENV variable
passing in ENV variable
I found this ticket here: https://jira.codehaus.org/browse/JRUBY-1579 , but it still seems to be an unresolved issue. I saw Jay's comment about the inability to promote ENV variables from inside the JRuby process, and wanted to know if this is still the case.
If so, it might be easier to have capistrano supply the ENV variable, but it would be nice to be able to do this in code.
The text was updated successfully, but these errors were encountered: