Skip to content

Instantly share code, notes, and snippets.

@moh-alsheikh
Last active October 12, 2015 14:58
Show Gist options
  • Save moh-alsheikh/4044141 to your computer and use it in GitHub Desktop.
Save moh-alsheikh/4044141 to your computer and use it in GitHub Desktop.
Rails 3 Heroku Asset Pipeline Notes
ERROR ::
if you get the following error message when you try to open your app in Heroku ::
ActionView::Template::Error (images/apple-touch-icon-144x144-precomposed.png isn't precompiled):
===============================================================================================================
SOLUTION ::
Add the following lines to your config/enviroments/production.rb
-------------------------------------------------------------------
config.assets.initialize_on_precompile = false
config.assets.compile = true
-------------------------------------------------------------------
============================= WEB LINKS FOR ISSUE ===================================
Web links related to this issue ::
http://excid3.com/blog/heroku-actionviewtemplateerror-css-isnt-precompiled/
https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar
http://railsapps.github.com/rails-heroku-tutorial.html
===================================================================================
#####################################################################################################################
ERRO ::
1- therubyracer and heroku issue
2- Fix for error: `ActionView::Template::Error ('twitter/bootstrap.less' wasn't found.`
===============================================================================================================
SOLUTION ::
GEM FILE SHOUD BE
-----------------------------------------------
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'therubyracer', :platforms => :ruby
gem "less-rails"
gem 'libv8', '~> 3.11.8'
end
# and make sure the twitter-bootstrap gem out side asset group because we need it in production
gem "twitter-bootstrap-rails"
-----------------------------------------------
============================= WEB LINKS FOR ISSUE ===================================
http://pastebin.com/r1MvMWHf
@sapienza
Copy link

sapienza commented Jun 7, 2013

it saved me!

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