Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on loading an ENV variables in *.yml files #269

Closed
peterprabu opened this issue Jan 30, 2015 · 4 comments
Closed

Issue on loading an ENV variables in *.yml files #269

peterprabu opened this issue Jan 30, 2015 · 4 comments

Comments

@peterprabu
Copy link

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

@d4be4st
Copy link
Member

d4be4st commented Jan 30, 2015

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

@peterprabu
Copy link
Author

@d4be4st i put my ENV variables in .bashrc file. Still same error.

@d4be4st
Copy link
Member

d4be4st commented Mar 11, 2015

@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

@peterprabu
Copy link
Author

@d4be4st Keeping my exports on top of this line works!

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants