eZ Community » Forums » eZ Platform » Probleme In CSS files when i change...
expandshrink

Probleme In CSS files when i change the environment from "dev" to "prod"

Probleme In CSS files when i change the environment from "dev" to "prod"

Tuesday 25 April 2017 3:50:07 pm - 1 reply

HI

I have some problemes with CSS files when i change the environment from the "dev" to "prod", In my CSS files, i have : 

background-image: url(/images/img1.png); 

the probleme is : in the prod environment  I can't figure out. The image is always not found by the browser.

Knowing i use :

php app/console assetic:dump 

php app/console assets:install 

Thursday 27 April 2017 9:26:28 pm

Have you check if PNG file exist in web/images/, you should have in CSS ...: url(../images/img1.png)

Try run in different order these commands, so run that:

php app/console assets:install

php app/console assetic:dump

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from