Using Symfony and Assetic I can't get css images to "dump" correctly in my prod environment. They continue to refer to the location of web / bundle / ... etc.
I have a very simple cssrewrite installation:
assetic:
debug: "%kernel.debug%"
use_controller: false
filters:
cssrewrite:
My template:
{% stylesheets 'bundles/<my bundle>/css/style.css' filter='cssrewrite' %}
<link rel="stylesheet" href="{{ asset_url }}">
{% endstylesheets %}
I have a prod version of app.php version with debug false:
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
I did:
application / console assets: install --symlink
Everything seems beautiful
Then I clear the prod cache
Ok
app / console assetic: dump --env = prod
My css and js are copied with the expected file names, however I still have url('../../bundle/..etc../images/bg.png');one appearing in my css
In the symbolic version of css: url('../images/bg.png');
So this must be something to do with the ascetic.
, , , 'dump'ed css , url ββ('../images/bg.png ');
, web/images/123abc.png
, , , ?
, .