Environment variabels unaccessible from rails -


i building rails application have initial configuration files use environment variables, , i'm using cloud9 ide. setting environment variables using export, yet when server running rails tells me parameter value supposed 1 of environment variables missing, , when used debugger, env["var_name"] returns nothing. ideas why? when run echo $var_name in bash, returns correct value.

edit: when run console --sandbox, environment variables available. in controller not available.

i fixed adding export var_name=var_value in .bashrc.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -