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

BUNDLE_GEMFILE ignored #22

Open
ddnexus opened this issue Feb 16, 2016 · 5 comments
Open

BUNDLE_GEMFILE ignored #22

ddnexus opened this issue Feb 16, 2016 · 5 comments

Comments

@ddnexus
Copy link

ddnexus commented Feb 16, 2016

Railways ignores the BUNDLE_GEMFILE variable, and it tries to load the regular Gemfile, which in some project maybe wrong, hence stopping it to work with some error.

Is there any possibility to bypass that problem?

@basgren
Copy link
Owner

basgren commented Feb 16, 2016

Thanks. I'll take a look if it's possible.
Could you please describe me your use case? Do you have Gemfile that's not in project root?

Also could you please run rake routes task from IDE (in RubyMine it can be done by Ctrl + Alt + R, then type routes) and let me know if RubyMine takes BUNDLE_GEMFILE into account when running rake tasks. Railways plugin uses standard RubyMine API to run rake tasks, so the solution might be not easy if the issue is in the API.

Thank you

@ddnexus
Copy link
Author

ddnexus commented Feb 17, 2016

I have multiple gemfiles in the project root but they have different names (there are a few compelling reasons to have that setup in our envs).

The routes from RubyMine can be pulled correctly by using the Arguments field (setting there the BUNDLE_GEMFILE=my_file_name) and the Environment picker provided.

Thanks

@ddnexus
Copy link
Author

ddnexus commented Oct 25, 2018

What is the status of this? Thanks.

@hurricup
Copy link
Contributor

you should probably see https://youtrack.jetbrains.com/issue/RUBY-16865

@ddnexus
Copy link
Author

ddnexus commented Oct 25, 2018

@hurricup Thanks. Commented and voted!

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

3 participants