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
Post a Comment