bundle install --gemfile=local.gems
that will treat "local.gems" as if it were a Gemfile and lock them
inside "local.gems.lock".
You may also need to do "bundle exec --gemfile=local.gems rails s" (or
use an alias) to tie it together.
- A
P.S. I feel like reranting that "Gemfile" is a bizarre anachronism
since for the past 30 years filenames have had dot-extensions, and
rake and bundler and foreman should get with the program and stop with
the stupid make-inspired capitalized Foofile nonsense. It would make
conventions like the above ("foo.gems/foo.gems.lock") much more
intuitive.
> --
> You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
> To post to this group, send email to ruby-b...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-bundler...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-bundler?hl=en.
>
--
Alex Chaffee - al...@stinky.com
http://alexchaffee.com
http://twitter.com/alexch
Looks like "bundle exec" doesn't have a --gemfile option, so try this instead:
BUNDLE_GEMFILE=local.gems bundle exec rails s
> I used eval which worked for my simple example.
>
> https://github.com/benatkin/local-gemfile
Wouldn't 'load' work better than (or just as well as) eval?
load "#{File.dirname __FILE__}/Gemfile"
Otherwise I approve of your hack. Especially setting the environment var inside .rvmrc.
-A
--
You received this message because you are subscribed to a topic in the Google Groups "ruby-bundler" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ruby-bundler/5zVMtUSNSd0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ruby-bundler...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-bundler.
For more options, visit https://groups.google.com/groups/opt_out.