Skip to content

Instantly share code, notes, and snippets.

@waystilos
Last active December 31, 2015 06:18
Show Gist options
  • Save waystilos/7946303 to your computer and use it in GitHub Desktop.
Save waystilos/7946303 to your computer and use it in GitHub Desktop.
compass-rails fix for learn-rails tutorial

This is my first Gist so I thought this would be a good time to share a problem I was stuck on for a little. I'm going through the Learn-Rails book and was trying to push my app to Heroku.

I kept getting this error after my Heroku push:

 Initializing repository, done.
 Counting objects: 235, done.
 Delta compression using up to 4 threads.
 Compressing objects: 100% (213/213), done.
 Writing objects: 100% (235/235), 225.69 KiB | 0 bytes/s, done.
 Total 235 (delta 72), reused 0 (delta 0)
 -----> Removing .DS_Store files
 -----> Ruby app detected
 -----> Compiling Ruby/Rails
 -----> Using Ruby version: ruby-2.0.0
 -----> Installing dependencies using Bundler version 1.3.2
   New app detected loading default bundler cache
   Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
   Fetching gem metadata from https://rubygems.org/........
   Fetching gem metadata from https://rubygems.org/..
   Could not find compass-rails-2.0.alpha.0 in any of the sources
   Bundler Output: Fetching gem metadata from https://rubygems.org/........
   Fetching gem metadata from https://rubygems.org/..
   Could not find compass-rails-2.0.alpha.0 in any of the sources


 !
 !     
 Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app</code>

compass-rails looks to be the culprit! I noticed that 2.0.alpha.0 has been yanked so I installed 1.1.2 from here:

 http://rubygems.org/gems/compass-rails/versions

and pushed my app to Heroku and WALA! Let me know if you any of you guys need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment