Note that there are some explanatory texts on larger screens.

plurals
  1. POrake assets:precompile not working on heroku
    text
    copied!<p>My website used to be working and Heroku precompiled the assets and everything. Now, seemingly out of nowhere, I started to get <code>rake aborted! stack level too deep</code> on deploy.</p> <p>Deleting the line <code>*= require_tree .</code> from my application.css file seems to fix the<code>stack level too deep</code> but then I get this:</p> <pre><code>Running: rake assets:precompile (in /tmp/build_b8o2t4k8frce) /usr/local/bin/ruby /tmp/build_b8o2t4k8frce/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:nondigest RAILS_ENV=production RAILS_GROUPS=assets (in /tmp/build_b8o2t4k8frce) </code></pre> <p>All my links to images are broken (I'm using image-url() in my css file). What could be the problem and how do I fix it?</p> <p>I'm using cedar stack and this is my gemfile:</p> <pre><code>gem 'rails', '3.1.0' gem 'rake', '0.8.7' gem 'devise' group :production do gem 'pg' gem 'thin' end group :assets do gem 'sass-rails', " ~&gt; 3.1.0" gem 'coffee-rails', "~&gt; 3.1.0" gem 'uglifier' end </code></pre> <p>And here are the versions used by heroku:</p> <pre><code>Using rake (0.8.7) Using rails (3.1.0) Using sass (3.1.15) Using sass-rails (3.1.6) </code></pre> <p>Here's my application.rb file</p> <pre><code>if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require *Rails.groups(:assets =&gt; %w(development test)) # If you want your assets lazily compiled in production, use this line # Bundler.require(:default, :assets, Rails.env) end module App class Application &lt; Rails::Application # 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' end end </code></pre> <p>And here's my production.rb file</p> <pre><code># Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.action_controller.perform_caching = true # Enable Rails's static asset server (Apache or nginx will not need this) config.serve_static_assets = true # Set expire header of 30 days for static files config.static_cache_control = "public, max-age=2592000" # Allow JavaScript and CSS compression config.assets.compress = true # Compress JavaScript by removing whitespace, shortening variable names, ... config.assets.js_compressor = :uglifier # Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true </code></pre>
 

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