Deploying my Symfony App, Having 404 css releated errors

symfony

Solution

You need to run the command dumping your asset files:

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

http://symfony.com/doc/current/cookbook/assetic/asset_management.html#dumping-asset-files-in-the-prod-environment

If you have used the `prod` environnement before, you probably want to clear the cache:

php app/console cache:clear --env=prod --no-debug

Or you can simply delete everything inside the `app/cache` folder if you want to only use your FTP client.

Problem

Im moving to production environment, since my dev and production server are the same i think the passage from one environment to the other is just using app.php instead of app-dev.php. Doing so im getting some 404 errors related to css files, so i believe since css is handle by assectic this problem might be related with cache right? But I have no idea of how to handle this. I have ssh access to my server, but a solution using just ftp will be also good.

Original source