anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Style not running on heroku #60

Closed tjy86 closed 11 years ago

tjy86 commented 11 years ago

Style shows locally:

http://biandang.herokuapp.com/

Gemfile: source 'https://rubygems.org' ruby '2.0.0' gem 'rails', '4.0.0' gem 'pg', '0.15.1' gem 'sass-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 1.2' gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails', :github => 'anjlab/bootstrap-rails', :branch => '3.0.0' gem 'figaro' gem 'high_voltage' gem 'simple_form', '>= 3.0.0.rc' gem 'slim' gem 'thin' group :development do gem 'better_errors' gem 'binding_of_caller', :platforms=>[:mri_19, :rbx] gem 'guard-bundler' gem 'guard-rails' gem 'haml-rails' gem 'haml2slim' gem 'html2haml' gem 'hub', :require=>nil gem 'quiet_assets' gem 'rb-fchange', :require=>false gem 'rb-fsevent', :require=>false gem 'rb-inotify', :require=>false end

nickserv commented 11 years ago

This is probably an issue with Rails and/or Heroku, not this repository. I remember having very similar issues before with Rails 4 on Heroku, but without using this repository.

You are most likely running into one of these two problems:

  1. You forgot to add additional dependencies for Rails 4 on Heroku (like the rails_12factor gem, which you don't seem to be using).
  2. The asset pipeline settings for your app cause asset precompiling to either fail or not happen when you deploy to Heroku. This would probably be an issue with your config files in config.

Please see these two articles on the Heroku Dev Center:

tjy86 commented 11 years ago

installed with 12factor gem. works now! cheers

nickserv commented 11 years ago

Ah awesome, I didn't expect it to be that easy. :+1: Glad I could help.