Gemfile not in root - Run the script in context of bundle (bundle exec)

When the Gemfile is not in the root of the project and instead in a subdirectory that also is configured as Working directory I got the error message "Run configuration error: No Gemfile found"

We have a project strucure like this

app1/bin
app1/lib
app1/Gemfile
app2/bin
app2/libapp2/Gemfile

 

2 comments
Comment actions Permalink

Hello, 

sorry for the delay. We have a corresponding issue on our tracker so please vote for it:

https://youtrack.jetbrains.com/issue/RUBY-17867 

At the moment you can try using multiple projects feature:

https://www.jetbrains.com/help/ruby/2016.3/opening-multiple-projects.html

0
Comment actions Permalink

If you right click on each app directory and go to "Mark Directory As > Ruby Project Root" it will allow you to run bundler in the context of each app

0

Please sign in to leave a comment.