Search code examples
phpsymfonyproduction-environmentasseticsymfony-2.4

From development (app_dev.php) to production (app.php) in Symfony2


I'm working in a Symfony2 project, under development enviroment app_dev.php all works fine but when I go to production app.php I get this error at Firebug console:

"NetworkError: 404 Not Found - http://applicationtest.com/css/fmain.css"

And of course CSS and JS isn't working, what I miss?


Solution

  • It seems that you have not dumped assetic resources:

    php app/console assetic:dump --env=prod
    

    And then try again...