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

Environment variables #135

Closed
optijon opened this issue Dec 22, 2021 · 1 comment
Closed

Environment variables #135

optijon opened this issue Dec 22, 2021 · 1 comment

Comments

@optijon
Copy link

optijon commented Dec 22, 2021

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

@dgutov
Copy link
Owner

dgutov commented Dec 22, 2021

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 dgutov closed this as completed Nov 15, 2022
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