Note that there are some explanatory texts on larger screens.

plurals
  1. POPrecompiling assets doesn't seem to be working
    text
    copied!<p>I'm having a strange problem that I have never encountered when deploying my rails apps to production.</p> <p>I run:</p> <pre><code>bundle exec rake assets:precompile </code></pre> <p>This is the output:</p> <pre><code>/home/ubuntu/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /home/ubuntu/.rvm/gems/ruby-2.0.0-p0/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets /home/ubuntu/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /home/ubuntu/.rvm/gems/ruby-2.0.0-p0/bin/rake assets:precompile:nondigest RAILS_ENV=production RAILS_GROUPS=assets </code></pre> <p>This is my app/assets/javascripts/application.js:</p> <pre><code>//= require jquery //= require jquery_ujs //= require jquery.ui.all //= require twitter/bootstrap //= require_tree . </code></pre> <p>And this is my app/assets/stylesheets/application.css:</p> <pre><code>/* *= require_self *= require jquery.ui.all *= require_tree . */ </code></pre> <p>After I precompile, this is my public/assets/application-946a5a61f067fe19fe65ffd12f8c4a20.js</p> <pre><code>//= require jquery //= require jquery_ujs //= require jquery.ui.all //= require twitter/bootstrap //= require_tree . </code></pre> <p>So it's exactly the same as the original file.</p> <p>And public/assets/application-df7525e917401704ef453cb56bf16697.css is an empty file.</p> <p>This is my Gemfile:</p> <pre><code>source 'http://rubygems.org' gem 'rails', '3.1.1' # Bundle edge Rails instead: # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git' gem 'pg' gem 'settingslogic' gem 'jquery-rails' gem 'jquery-ui-rails' gem 'json' gem 'will_paginate', '~&gt;3.0.pre2' gem 'friendly_id', '~&gt; 4.0.0.beta14' gem 'rails3-jquery-autocomplete' gem 'omniauth' gem 'omniauth-twitter' gem 'omniauth-facebook' gem 'paperclip', '~&gt; 3.0' gem 'public_activity' gem 'rails-timeago' gem 'therubyracer', :require =&gt; 'v8' gem 'less-rails' gem 'twitter-bootstrap-rails', :git =&gt; 'git://github.com/seyhunak/twitter-bootstrap-rails.git' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails' gem 'coffee-rails' gem 'uglifier', '&gt;= 1.0.3' end # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~&gt; 3.0.0' # Use unicorn as the web server # gem 'unicorn' # Deploy with Capistrano # gem 'capistrano' # To use debugger # gem 'ruby-debug19', :require =&gt; 'ruby-debug' group :test do # Pretty printed test output gem 'turn', :require =&gt; false end </code></pre> <p>And config/environments/production.rb:</p> <pre><code>Yupp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) config.serve_static_assets = false # Compress JavaScripts and CSS config.assets.compress = true # Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = false # Generate digests for assets URLs config.assets.digest = true #config.assets.initialize_on_precompile = false #... end </code></pre> <p>Any direction will be greatly appreciated.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload