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 -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

Delphi 7 and decode UTF-8 base64 -