robe icon indicating copy to clipboard operation
robe copied to clipboard

Environment variables

Open optijon opened this issue 4 years ago • 1 comments

Hi, I'm using direnv to manage my environment variables in my Rails project. Some of these variables are required for our Rails app to start up. When I attempt to start Robe, I get a message about missing variables. Is there any way to start Robe in my development environment with access to these variables?

Thanks, -Jon

optijon avatar Dec 22 '21 15:12 optijon

I think there was some project to have Emacs apply those variables automatically? You can look for it and related docs.

Or add an around-advice to inf-ruby-console-rails which would parse the file and update the process-environment var.

Or combine those two options, if the existing direnv-support package has some convenient implementation of said parsing logic.

dgutov avatar Dec 22 '21 17:12 dgutov