# rbenv-vars - Rails app is not reading them. How do they get loaded?

**URL:** <https://forum.ansible.com/t/rbenv-vars-rails-app-is-not-reading-them-how-do-they-get-loaded/21668>\
**Category:** Ansible Project\
**Created:** [June 5, 2016, 7:55pm UTC](https://forum.ansible.com/t/rbenv-vars-rails-app-is-not-reading-them-how-do-they-get-loaded/21668 "2016-06-05T19:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Godse](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@Jay\_Godse](https://forum.ansible.com/u/Jay_Godse)\
**Post date:** [June 5, 2016, 7:55pm UTC](https://forum.ansible.com/t/rbenv-vars-rails-app-is-not-reading-them-how-do-they-get-loaded/21668/1 "2016-06-05T19:55:32Z")

</div>

I am trying to deploy a Ruby 2.2 / Rails 4.2 application from a project I inherited, and rbenv-vars is used (along with rbenv). When I try to start the Puma service, I can tell that the rbenv variables aren’t getting loaded because RAILS\_ENV is not set, and database.yml doesn’t read the environment and uses defaults.

What do I have to do to get Ruby to load rbenv-vars to load the environment variables?
