foodsoft
foodsoft copied to clipboard
Add ability to include custom gems
This might be useful if you want to include gems that are not part of this project. E.g. when a Foodsoft hosting provider want to include turnout to inform about maintenance.
Interesting idea.
Gemfile.lock
remains an issue here, how to handle that? Can we separate the two ... ?
I would leave the Gemfile.lock
as it is. It's up to the user to update that file if one adds additional gems to Gemfile.local
.
When people start using this, Gemfile.lock
would be updated after a bundle install
.
I'd expect this change to introduce random Gemfile.lock
changes in PRs.
Are there drawbacks to echo "gem 'foo'" >>Gemfile && bundle install
for a hosting provider?
I do not think this is a clean solution, since you would need to keep it in sync with Gemfile.lock
. IMO hosting providers should install only with bundle install --deployment
, which requires that Gemfile.lock
is up to date
Maybe it would be better to do it the other way and include the Gemfile
in a Gemfile.local
:
# Gemfile.local
eval File.read('Gemfile')
And then run bundle install --gemfile Gemfile.local