Mina is not able to load environment variables which are in *.yml files while deploying.
Please refer this for detail: http://stackoverflow.com/questions/28215274/rails-mina-not-able-to-load-environment-variables-in-database-yml-file?noredirect=1#comment44798939_28215274
You need to put your ENV in .bashrc file. .bash_profile is not loaded as mina is using non-interactive shell.
seed here: http://stackoverflow.com/a/216204/1339894
@d4be4st i put my ENV variables in .bashrc file. Still same error.
@peterprabu we just had the same problem.
do you have this line in your basrc file?
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
if yes then you need to put your exports before that line
@d4be4st Keeping my exports on top of this line works!
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
Thanks.
Most helpful comment
@d4be4st Keeping my exports on top of this line works!
Thanks.