Reputation: 545
In Dev enviroment it works perfectly, but when I switch to Prod it doesn't do anything. It looks like it doesn't attach the event listeners (when I inspect elements with Chrome, no event listener is detected where they should). Any ideas? I've cleared both caches and maybe it's important to say that I had copied
_assetic:
resource: .
type: assetic
from routing_dev.yml to routing.yml because if I don't I got the following 500 Internal Server Error:
request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "_assetic_f582f37" does not exist.")
Upvotes: 3
Views: 3140
Reputation: 5567
Have you dumped your asset files?
php app/console assetic:dump --env=prod --no-debug
http://symfony.com/doc/current/cookbook/assetic/asset_management.html#cookbook-assetic-dumping
Upvotes: 4