railways icon indicating copy to clipboard operation
railways copied to clipboard

BUNDLE_GEMFILE ignored

Open ddnexus opened this issue 9 years ago • 5 comments

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?

ddnexus avatar Feb 16 '16 00:02 ddnexus

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

basgren avatar Feb 16 '16 11:02 basgren

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 avatar Feb 17 '16 06:02 ddnexus

What is the status of this? Thanks.

ddnexus avatar Oct 25 '18 10:10 ddnexus

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

hurricup avatar Oct 25 '18 10:10 hurricup

@hurricup Thanks. Commented and voted!

ddnexus avatar Oct 25 '18 12:10 ddnexus