Last active
October 12, 2015 14:58
-
-
Save moh-alsheikh/4044141 to your computer and use it in GitHub Desktop.
Rails 3 Heroku Asset Pipeline Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it saved me!