in my <rail_root>/config/environment.rb, I set several global variables used throughout app. for example:
when i try use those var in a controller or display the value in a rhtml page, eg, <%= ENV['image_dir'] %>
* If rail app started under webrick or mongrel, they works fine.
* under ruby lsapi, all of those var seems not processed and are nil when I try to use them.
Code:
ENV['image_dir'] = '/folder1'
ENV['record_click_trail'] = 'yes'
* If rail app started under webrick or mongrel, they works fine.
* under ruby lsapi, all of those var seems not processed and are nil when I try to use them.