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
Adopt Rails style binary? #562
Comments
We use the same way without needs to have a script inside, basically when we load boot.rb we just check Gemfile and deps. Btw thanks for the suggestion! |
The linked post exactly elaborates why Rails does not do this, as it is not enough. The problem can be easily seen with Padrino as well. Using the following Gemfile:
And:
You get the following:
Thats a big hassle for people supporting projects in more than one version of padrino without resorting to |
The rails binary does a clever trick to circumvent the
bundle exec
-problem. If it detects that it is runs in a Rails project, it basically restarts itself by usingscript/rails
and makes sure it runs in the projects environment. See Details here: http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/Do we want to adopt a similar technique?
The text was updated successfully, but these errors were encountered: