i pass i pass - 17 days ago 5
CSS Question

production server dont show images

Can you help me? Here is my server. http://46.101.160.4/
In header-courusel i should have images, but he is not display. here is my code :

index.html.erb



<!-- THE FIRST SLIDE-->
<li>
<!-- FIRST SLIDE OVERLAY -->
<div class="slider_overlay"></div>
<!-- FIRST SLIDE MAIN IMAGE -->
<img src="assets/doroga1.jpg" />
<!-- FIRST SLIDE CAPTION-->
<div class="slider_caption">
<h2>Пассажирские перевозки <br>Донбасс - Крым </h2>
<p>Ежедневно в обе стороны</p>
</div>
</li>


here is my style.css.scss

.slider_area{
float: left;
display: inline;
width: 100%;
position: relative;
}
.slider_overlay {
background: none repeat scroll 0 0 #242434;
height: 100%;
opacity: 0.8;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 9;
}

Answer

Run

RAILS_ENV=production bundle exec rake assets:precompile

on your server app directory

along with this set

config.serve_static_assets = true

in your environment/production.rb

Comments