Sometimes the command to publish the assets deletes all of them (directly form the bundle!!) instead of copying/symlinking them.
I tried both of these commands:
php app/console assets:install web
php app/console assets:install --symlink web
Both work sometimes, but some other times they ruin everything and I have to go back to the last changeset (god bless mercurial). They even delete the assets from the framework and the demos.
Is this a bug, or am I using the wrong command?
I think there's a bug around the piece of code that is supposed to clear the web/bundles directory. Instead, it is deleting ever开发者_如何学Pythonything (randomly) directly from the bundles, eg: MyBundle/Resources/public
Try starting on the debug mode, that way you won't need to use assetic:install again and again. app/console commands gives how to start debug assetic mode
app/console assetic:dump
精彩评论