I switched to zsh
from bash
. I updated the shell in Preferences > Terminal
settings inside RubyMine.
But, now environment variables are not being loaded inside my Rails application. I can still access them inside the terminal in RubyMine editor!
I tried printing the value of environment variable inside a yml file (where all the DB related environment variables are required). I could access the home
variable but not custom variables set by me.
Database.yml file:
Output while starting Rails server in Rubymine:
Output inside Rubymine terminal:
My /etc/zshrc
:
DB settings inside my vaibhavatul47_zsh_profile.sh
file:
bash
for now. Things working fine again. - vaibhavatul47