Note that there are some explanatory texts on larger screens.

plurals
  1. POIf I locally precompile, should my images when inspected show the long precompiled name?
    primarykey
    data
    text
    <p>I have a rails 4.0.1 ruby 2.0.0 app. </p> <p>I'm locally precompiling: RAILS_ENV=production bundle exec rake assets:precompile.</p> <p>My configurations in production.rb file are: config.serve_static_assets = true config.assets.compile = true</p> <p>The images in my app/assets/images folder are in the public/assets folder, for example 'starsw600-xxxlongnumberxxx.png'</p> <p>When I deploy in Heroku I get " Detected manifest file, assuming assets were compiled locally" and my images show up.</p> <p>My question is when I inspect the image I get 'background-image url("<a href="http://abc-abc-abc.herokuapp.com/assets/starsw600.png" rel="nofollow">http://abc-abc-abc.herokuapp.com/assets/starsw600.png</a>")'</p> <p>Same as when I don't precompile. When I inspect the element shouldn't I get 'background-image url("<a href="http://abc-abc-abc.herokuapp.com/public/assets/starsw600-xxxlongnumberxxx.png" rel="nofollow">http://abc-abc-abc.herokuapp.com/public/assets/starsw600-xxxlongnumberxxx.png</a>")'</p> <p>thus verifying that heroku is using the locally precompiled images that I made?</p> <p>When I change config.assets.compile to false 'config.assets.compile = false' the images don't show.</p> <p>So question is: If I locally precompile, should my images when inspected show the long precompiled name?</p> <p>This is my stylesheet ricardoorangetest/app/assets/stylesheets/show.css.scss</p> <pre><code>.stars { background-image:image_path('/starsw600.png'); height:30px; width:600px; //background-color:#ffffff; background-repeat:no-repeat; border-color:#190c00; border-style:solid; border-width:2px 0px 0px 0px; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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