Friday, June 22, 2012

Troubles pushing code to Heroku

After a little sleuthing, I found one post that seemed to be the very same problem that I was having.  In normal(?) environments, Bundler will accept conditionals in determining whether to install a gem or not.

E.g.,
gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i # so that Guard can detect file changes on OS X (Mac)

Apparently, as FreeAssoc states in his post, Heroku doesn't handle the conditionals well, even when those conditionals show up in a non-production block in the Gemfile.

Sure enough, as soon as I commented out the conditional, I was back in business.

gem 'rb-fsevent' #, :require => false if RUBY_PLATFORM =~ /darwin/i # so that Guard can detect file changes on OS X (Mac)

No comments:

Post a Comment