Skip to content

Instantly share code, notes, and snippets.

@foca
Last active September 25, 2015 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foca/a7936bb73a354e9ff79c to your computer and use it in GitHub Desktop.
Save foca/a7936bb73a354e9ff79c to your computer and use it in GitHub Desktop.
Stupid heroku wants Bundler. Bundler is shit. Make to the rescue.
##
# Bundler for Heroku
##
Gemfile.lock: Gemfile
ruby -S bundle install
Gemfile: .gems
echo "source \"https://rubygems.org\"" > $@
echo "ruby \"$(shell ruby -e 'puts RUBY_VERSION')\"" >> $@
awk '{ print "gem \"" $$1 "\", \"" $$3 "\"" }' $< >> $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment