twitter.gemspec file is
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'twitter/version'
Gem::Specification.new do |spec|
spec.add_dependency 'faraday', ['~> 0.8', '< 0.10']
spec.add_dependency 'multi_json', '~> 1.0'
spec.add_dependency 'simple_oauth', '~> 0.2'
spec.add_development_dependency 'bundler', '~> 1.0'
spec.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober", "Steve Richert", "Steve Agalloco"]
spec.cert_chain = ['certs/sferik.pem']
spec.description = %q{A Ruby interface to the Twitter API.}
spec.email = ['nunemaker#gmail.com', 'wynn.netherland#gmail.com', 'sferik#gmail.com', 'steve.richert#gmail.com', 'steve.agalloco#gmail.com']
spec.files = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile twitter.gemspec)
spec.files += Dir.glob("lib/**/*.rb")
spec.files += Dir.glob("spec/**/*")
spec.homepage = 'http://sferik.github.com/twitter/'
spec.licenses = ['MIT']
spec.name = 'twitter'
spec.require_paths = ['lib']
spec.required_rubygems_version = '>= 1.3.5'
#spec.signing_key = File.expand_path("~/.gem/private_key.pem") if $0 =~ /gem\z/
spec.summary = spec.description
spec.test_files = Dir.glob("spec/**/*")
spec.version = Twitter::Version
end
I want to degrade dependencies faraday 0.8 to 0.7 how can i do this
plase help me
If you just want the latest patch in the 0.7 tree, you just need to change the faraday line to this:
spec.add_dependency 'faraday', '~> 0.7.0'
Or you can specify a specific version if you want:
spec.add_dependency 'faraday', '0.7.1'
For more information I'd recommend reading the Bundler page about Gemfiles http://bundler.io/v1.3/gemfile.html
Related
I've seen many questions and solutions for this issue on SO, but none have worked for me. The Glyphicons work great locally, but show as boxes on Heroku from desktop browsers.
I'm using them like this:
<span class="glyphicon glyphicon-trash"></span>
This is my gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.1.8'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails', '~> 3.1.0'
gem 'turbolinks'
gem 'jquery-turbolinks'
gem 'jbuilder', '~> 2.0.2'
gem 'bootstrap-sass', '~> 3.1.1.0'
gem 'twitter-bootstrap-rails', '~> 3.2.0'
gem 'devise', '~> 3.2.2'
gem 'simple_form'
gem "paperclip", "~> 4.2.0"
gem 'aws-sdk', '~> 1.32.0'
gem 'will_paginate', '3.0.7'
gem 'will_paginate-bootstrap'
gem "friendly_id", "~> 5.0.2"
gem 'faker', '1.2.0'
gem 'auto_html'
gem 'protected_attributes'
gem 'ckeditor', '~> 4.0.11'
gem 'font-awesome-rails'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
gem 'sqlite3'
end
I currently have production.rb set like this after trying other fixes:
config.serve_static_assets = true
config.assets.compress = true
config.assets.compile = true
config.assets.digest = true
My application.rb file has the following:
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
# Enable the asset pipeline
config.assets.enabled = true
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# Required for Devise on Heroku
config.assets.initialize_on_precompile = false
config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
config.assets.precompile += Ckeditor.assets
config.assets.precompile += %w(ckeditor/*)
config.assets.precompile += %w( .svg .eot .woff .ttf )
config.assets.precompile += [ 'styles.css.scss']
config.assets.precompile += [
'glyphicons-halflings.png',
'glyphicons-halflings-white.png'
]
I have also tried running
bundle exec rake assets:precompile
and
bundle exec rake assets:precompile RAILS_ENV=production
I have tried so many fixes, that something I have set now might be wrong. Everything works great locally. I also have an issue where a text-align: center is not being pushed to heroku from my CSS file. I'll post that as a separate issue, but I mention it in case it's a related issue with the asset pipeline.
This is how I load teh stylesheets in the app:
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
These are my stylesheets:
application.css.scss
pages.css.scss
posts.css.scss
scaffolds.css.scss
styles.css.scss
users.css.scss
in my application.css.scss:
*= require_self
*= require_tree .
*= require font-awesome
in my styles.css.scss
#import 'bootstrap';
#import url("//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");
#import 'font-awesome';
#font-face {
font-family: 'Glyphicons Halflings';
src: font-path('glyphicons-halflings-regular.eot');
src: font-path('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
font-path('glyphicons-halflings-regular.woff') format('woff'),
font-path('glyphicons-halflings-regular.ttf') format('truetype'),
font-path('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
Here's the error from Chrome:
Font from origin 'http://thetens.herokuapp.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.thetens.us' is therefore not allowed access. The response had HTTP status code 404.
jquery-91eecca5c0fff73b540ae82e1b1833c8.js:3581 GET http://thetens.herokuapp.com/fonts/glyphicons-halflings-regular.woff jquery-91eecca5c0fff73b540ae82e1b1833c8.js:3581 (anonymous function)jquery-91eecca5c0fff73b540ae82e1b1833c8.js:3120 firejquery-91eecca5c0fff73b540ae82e1b1833c8.js:3232 self.fireWithjquery-91eecca5c0fff73b540ae82e1b1833c8.js:3444 jQuery.extend.readyjquery-91eecca5c0fff73b540ae82e1b1833c8.js:3475 completed
(index):1 Font from origin 'http://thetens.herokuapp.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.thetens.us' is therefore not allowed access. The response had HTTP status code 404.
(index):1 GET http://thetens.herokuapp.com/fonts/glyphicons-halflings-regular.ttf
Update: I commented out
# config.action_controller.asset_host = "http://thetens.herokuapp.com"
and now I only get two errors:
GET http://www.thetens.us/fonts/glyphicons-halflings-regular.woff jquery-6156cfcaa88efb694ac4fac3d8cef9c4.js:3581 (anonymous function)jquery-6156cfcaa88efb694ac4fac3d8cef9c4.js:3120 firejquery-6156cfcaa88efb694ac4fac3d8cef9c4.js:3232 self.fireWithjquery-6156cfcaa88efb694ac4fac3d8cef9c4.js:3444 jQuery.extend.readyjquery-6156cfcaa88efb694ac4fac3d8cef9c4.js:3475 completed
(index):1 GET http://www.thetens.us/fonts/glyphicons-halflings-regular.ttf
For me this worked out:
#import "bootstrap-sprockets";
#import "bootstrap";
I hope this helps you to! :)
You have to link absolutely to the font like
#import 'bootstrap';
#import url("//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");
#import 'font-awesome';
#font-face {
font-family: 'Glyphicons Halflings';
src: font-path('/assets/fonts/glyphicons-halflings-regular.eot');
src: font-path('/assets/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
font-path('/assets/fonts/glyphicons-halflings-regular.woff') format('woff'),
font-path('/assets/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
font-path('/assets/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
Mark sure that the fonts are link properly in heroku
Had the same problem on heroku and this is caused by Cross-Origin Resource Sharing. That's why most config solutions don't work.
my solution was:
move all assets to S3 bucket (used asset_sync gem)
configureCORS on bucket (CORS) [IMPORTANT]
So, here is my Capfile
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
# https://github.com/capistrano/rvm
# https://github.com/capistrano/rbenv
# https://github.com/capistrano/chruby
# https://github.com/capistrano/bundler
# https://github.com/capistrano/rails
#
require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
require 'capistrano/bundler'
require 'capistrano/rails/migrations'
require 'capistrano/rails/assets'
require 'airbrake/capistrano3'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
Here's my deploy file:
# config valid only for Capistrano 3.1
lock '3.2.1'
set :application, 'my_app'
set :repo_url, 'git#github.com:org/my-app.git'
# Default branch is :master
set :branch, 'dev'
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
# Default deploy_to directory is /var/www/my_app
set :deploy_to, '/webapps/my_app'
# Default value for :scm is :git
# set :scm, :git
# Default value for :format is :pretty
# set :format, :pretty
# Default value for :log_level is :debug
# set :log_level, :debug
# Default value for :pty is false
# set :pty, true
set :deploy_via, :remote_cache
# Default value for :linked_files is []
set :linked_files, %w{config/database.yml config/secrets.yml}
set :normalize_asset_timestamps, %{public/images public/javascripts public/stylesheets}
# Default value for linked_dirs is []
# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
set :bundle_flags, "--deployment --verbose"
# Default value for keep_releases is 5
# set :keep_releases, 5
set :ssh_options, { :forward_agent => true }
namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart do
on roles (:app),:except => { :no_release => true } do
puts "\x1B[35m Restarting ... \x1B[0m"
execute "touch #{current_path}/tmp/restart.txt"
puts "\x1B[35m Done. \x1B[0m"
end
end
desc "Tag deployed release"
task :tag do
run_locally do
timestamp = Time.now.strftime("%Y_%m_%d_%H_%M_%S")
tag_name = "#{fetch(:stage)}_#{timestamp}"
latest_revision = fetch(:current_revision)
strategy.git "tag -f #{tag_name} #{latest_revision}"
strategy.git "push -f --tags"
info "[cap-deploy-tagger] Tagged #{latest_revision} with #{tag_name}"
end
end
after :publishing, :restart
after :restart, :cleanup
after :cleanup, 'deploy:tag'
#after 'deploy:finished', 'airbrake:deploy'
end
The issue is that when I run "cap production deploy:check" I get:
LoadError: cannot load such file -- airbrake/capistrano3
/home/dir/dev/my-app/Capfile:24:in `require'
/home/dir/dev/my-app/Capfile:24:in `<top (required)>'
/home/dir/.rvm/gems/ruby-2.1.0/gems/capistrano-3.2.1/lib/capistrano/application.rb:15:in `run'
/home/dir/.rvm/gems/ruby-2.1.0/gems/capistrano-3.2.1/bin/cap:3:in `<top (required)>'
/home/dir/.rvm/gems/ruby-2.1.0/bin/cap:23:in `load'
/home/dir/.rvm/gems/ruby-2.1.0/bin/cap:23:in `<main>'
/home/dir/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
/home/dir/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
If I change require 'airbrake/capistrano3'to require 'airbrake/capistrano' then I get NoMethodError: undefined methodinstance' for Capistrano::Configuration:Class`
Any ideas on how to fix it?
Thanks a lot!
BTW, here's my gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.4'
# Use mysql as the database for Active Record
gem 'mysql2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use debugger
# gem 'debugger', group: [:development, :test]
gem 'haml'
gem 'devise'
gem 'will_paginate', '~> 3.0'
gem 'thin'
gem 'faye'
gem 'aasm'
gem 'useragent'
gem 'mini_magick'
gem 'carrierwave'
gem 'airbrake'
group :development do
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rvm'
gem 'rspec-rails'
gem 'pry'
end
For googling folks, if you having this error after upgrading to latest Airbrake v5, there is a change
# Old way
# For Capistrano 2
# Capfile
require 'airbrake/capistrano'
# For Capistrano 3
# Capfile
require 'airbrake/capistrano3'
# config/deploy.rb
after 'deploy:finished', 'airbrake:deploy'
# New way
# For Capistrano 2
require 'airbrake/capistrano/tasks'
# For Capistrano 3
# Capfile
require 'airbrake/capistrano/tasks'
# config/deploy.rb
after :finished, 'airbrake:deploy'
https://github.com/airbrake/airbrake/blob/master/docs/Migration_guide_from_v4_to_v5.md#capistrano
same apply for Sidekiq, and other bunch of gems
Are you sure you have Airbrake 4.1.0 installed?
This question already has an answer here:
"non-terminal statement or declaration" error when using Microsoft's proprietary filter property in Sass
(1 answer)
Closed 7 years ago.
Im trying to precompile assets for production. Unless I include the bootstrap and font-awesome assets as static files (or host from CDN) sass-rails fails when trying to compile assets on production. My Gemfile looks like this:
# Default asset gems
gem 'coffee-rails', '~> 4.0.0'
gem 'sass-rails' , '~> 4.0.3'
gem 'uglifier' , '>= 1.3.0'
# Default gems
gem 'jbuilder', '~> 2.0'
gem 'sdoc' , '~> 0.4.0', group: :doc
# Added gems
gem 'carrierwave'
gem 'pg'
gem 'turbolinks'
gem 'restforce'
# Asset gems
gem 'jquery-rails'
gem 'autoprefixer-rails'
gem 'bootstrap-sass'
gem 'font-awesome-sass'
gem 'handlebars_assets'
gem 'iconv'
When i try to compile assets i get the following error:
➜ stylesheets git:(master) ✗ rake assets:precompile
(in /home/ubuntu/spice-conduit)
rake aborted!
Sass::SyntaxError: Invalid CSS after " filter: progid": expected ";", was ": DXImageTransf..."
(in /home/ubuntu/spice-conduit/app/assets/stylesheets/application.css)
(sass):3566
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:1147:in `expected'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:1085:in `expected'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:1080:in `tok!'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:586:in `block in declaration_or_ruleset'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `call'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:1123:in `rethrow'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:592:in `declaration_or_ruleset'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:554:in `block_child'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:546:in `block_contents'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:535:in `block'
/home/ubuntu/.rvm/gems/ruby-2.1.3/gems/sass-3.2.19/lib/sass/scss/parser.rb:529:in `ruleset'
app.css file:
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require jquery-ui
*= require sweetalert
*= require vendors
*= require_tree .
*/
My scss file:
#import "font-awesome-sprockets";
#import "font-awesome";
#import "bootstrap-sprockets";
#import "bootstrap";
I've seen this issue reported here: https://github.com/rails/sass-rails/issues/37
but that issue is several years old.
Remove the white space between progid and DXImageTransform.Microsoft.gradient.
for ex.,
OLD SYNTAX
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#7adddd', endColorstr='#39cccc', GradientType=0) !important;
NEW SYNTAX
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7adddd', endColorstr='#39cccc', GradientType=0) !important;
You can see in the NEW SYNTAX, I have removed extra space between progid and DXImageTransform.Microsoft.gradient().
I am building a rails app on heroku, and want to deploy the js, css, and image files to a bucket on Amazon. I haven't found many resources for this, but I am using this (2012) tutorial for guidance; https://firmhouse.com/blog/complete-guide-to-serving-your-rails-assets-over-s3-with-asset_sync
The site is mainly css and js at the moment. Here is my code so far;
production.rb
Rails.application.configure do
config.action_controller.asset_host = "http://localize.s3.amazonaws.com"
config.cache_classes = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
end
initializers/asset_sync.rb
if defined?(AssetSync)
AssetSync.configure do |config|
config.fog_provider = ENV['FOG_PROVIDER']
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
config.fog_directory = ENV['FOG_DIRECTORY']
config.fog_region = ENV['FOG_REGION']
# Don't delete files from the store
config.existing_remote_files = "delete"
# Automatically replace files with their equivalent gzip compressed version
config.gzip_compression = true
# Use the Rails generated 'manifest.yml' file to produce the list of files to
# upload instead of searching the assets directory.
config.manifest = true
config.custom_headers = { '.*' => { cache_control: 'max-age=31536000', expires: 1.year.from_now.httpdate } }
end
end
Heroku Vars
AWS_ACCESS_KEY_ID: *****************
AWS_SECRET_ACCESS_KEY: *****************************
FOG_DIRECTORY: localize
FOG_PROVIDER: AWS
FOG_REGION: us-west-2
gemfile
gem 'rails', '4.1.1'
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
gem 'sdoc', '~> 0.4.0', group: :doc
#aws
gem "fog", "~>1.20"
gem 'asset_sync'
group :development do
gem 'thin'
end
group :production do
gem 'newrelic_rpm'
gem 'rails_12factor'
gem 'pg'
end
I also ran:
heroku config:add FOG_PROVIDER=AWS AWS_ACCESS_KEY_ID=xxx AWS_SECRET_ACCESS_KEY=yyy
Along with
heroku config:add FOG_DIRECTORY=localize
And then when I run
bundle exec rake assets:precompile
Or
RAILS_ENV=production bundle exec rake assets:precompile
I get this output;
rake aborted!
AssetSync::Config::Invalid: Fog directory can't be blank, Aws access key can't be blank, Aws secret access key can't be blank
Anyone who has experience with rails, heroku, and S3 who could guide me in the right direction would be much appreciated. Thanks in advance.
Ok looking at your settings there seems to be a few things wrong, Ill add what i normally use and hopefully it will help you
Production.rb
ExampleApp::Application.configure do
config.action_controller.asset_host = "http://exampleapp.s3.amazonaws.com"
config.cache_classes = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = true
config.assets.compress = true
config.assets.compile = true
config.assets.digest = true
end
asset_sync.rb
if defined?(AssetSync)
AssetSync.configure do |config|
config.fog_provider = ENV['FOG_PROVIDER']
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
config.fog_directory = ENV['FOG_DIRECTORY']
config.fog_region = ENV['FOG_REGION']
# Don't delete files from the store
config.existing_remote_files = "delete"
# Automatically replace files with their equivalent gzip compressed version
config.gzip_compression = true
# Use the Rails generated 'manifest.yml' file to produce the list of files to
# upload instead of searching the assets directory.
config.manifest = true
config.custom_headers = { '.*' => { cache_control: 'max-age=31536000', expires: 1.year.from_now.httpdate } }
end
end
This is driving me insane! My app works properly on the local server, but when I uploaded to heroku, the css and js files didn't update. I read to precompile using rake assets:precompile to fix the issue, but then I uploaded to heroku again and now all my assets aren't loading at all! I've tried all variations of precompile, installed 12factor gem, turned some config settings from false to true, still not happening! When i look at the console, it says
[Error] ReferenceError: Can't find variable: jQuery
global code (application-38ccb09605964287831a37a0d9faf188.js, line 1)
but I do have Jquery! it works fine on local! I dunno what I'm doing wrong guys.
Gemfile
gem 'bootstrap-sass-rails'
gem 'rails_12factor', group: :production
gem 'rails', '4.0.0'
gem 'sqlite3', :group => [:development, :test]
group :production do
gem 'thin'
gem 'pg'
end
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
production.rb
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = true
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.assets.version = '1.0'
config.log_level = :info
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
running $RAILS_ENV=production bundle exec rake assets:precompile made my heroku app work now. so i guess problem is fixed..
sorry, I don't have an explanation on why it works
Simply run
$ bundle exec rake assets:precompile
$ git add .
$ git commit -am "assets precompiled locally"
$ git push heroku master