Note that there are some explanatory texts on larger screens.

plurals
  1. POHeroku asset files always empty
    text
    copied!<p>First, I did a hell of a lot of googling to even get things working on Heroku, but it seems that regardless of whether I let heroku pre-compile my assets during slug compilation, or if I precompile them myself and submit them, either way, my Rails 4 app's application.css is always empty:</p> <pre><code>$ curl -i http://www.boxscoregeeks.com/assets/application-c712146df692b0fca6c21c0bf1dddcd5.css HTTP/1.1 200 OK Content-Type: text/css Date: Sun, 01 Sep 2013 00:50:10 GMT Last-Modified: Sun, 01 Sep 2013 00:46:54 GMT Status: 200 OK X-Sendfile: /app/public/assets/application-c712146df692b0fca6c21c0bf1dddcd5.css Content-Length: 0 Connection: keep-alive </code></pre> <p>To verify, it's fine locally:</p> <pre><code>$ curl -I http://localhost:3001/assets/application-c712146df692b0fca6c21c0bf1dddcd5.css HTTP/1.1 200 OK Last-Modified: Sat, 31 Aug 2013 03:46:55 GMT Content-Type: text/css Content-Length: 106237 Connection: keep-alive Server: thin 1.5.1 codename Straight Razor </code></pre> <p>My checklist:</p> <ul> <li>I have <code>config.serve_static_assets = true</code> in my production.rb file.</li> <li>I have <code>gem 'rails_12factor', group: :production</code> in my Gemfile</li> <li>I did this: <code>heroku labs:enable user-env-compile --app=YOUR_APP</code>. Before I ran that, assets:precompile would not run, despite steps 1 and 2. It would always try to initialize the production database.</li> </ul> <p>Almost all of my googling tells me to do these things above, but here I am still with an empty applicaiton.css file. Any help would be great.</p> <p>Thanks!</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