views:

124

answers:

2

I'm trying to get Heroku working with European buckets on amazon s3 webserivces using the aws-s3 gem. It seems I need to install a forked version of the gem to get around the issue. However, with heroku I can only use the .gems file to install gems.

Can I use this .gems file to install forked-gems somehow?

+1  A: 

Unpack the gem in your local repository, then add it to your git repository. This will copy the gem to your vendor/gems directory. Also remember to remove the gem from your .gems list to prevent Heroku from using the unwanted version.

#Unpacks all gems
rake gems:unpack

#Unpack a specific gem
rake gems:unpack GEM=xxxxx
Kevin
+1  A: 

Heroku already supports Bundler even for not-Rails 3 application. http://blog.heroku.com/archives/2010/2/17/gem_bundler_on_heroku/

You can switch to Bundler and use its syntax to have Bundler downloading the Gem from the fork.

Simone Carletti