Skip to content


Use with Chef #2

bensie opened this Issue · 1 comment

2 participants


Hi Sam,

Attempting to use rbenv-vars with Chef, but Chef never seems to see the per project environment variables.

Example that works perfectly and respects the RAILS_ENV defined in .rbenv-vars when run manually:

cd /mnt/app/current && /mnt/app/current/bin/rake assets:precompile

Chef recipe that does not see any rbenv-vars and fails because that rake task defaults to RAILS_ENV=production:

bash "Precompile assets" do
  cwd "/mnt/app/releases/xxxx"
  user app['owner']
  group app['group']
  code "mnt/app/releases/xxxx/bin/rake assets:precompile"

I know I can't assume that you're familiar with Chef, but just wondering if you have any hunches as to what might be wrong or what steps I might take to get it working.



Sorry, I don't know. Try running with RBENV_DEBUG=1 set to see the full execution trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.