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

swift - Button on Table View Cell connected to local function -

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

c# - ajax - How to receive data both html and json from server? -