开发者

Symfony 2: How to avoid assets being deleted? (on windows)

开发者 https://www.devze.com 2023-03-17 15:21 出处:网络
Sometimes the command to publish the assets deletes all of them (directly form the bundle!!) instead of copying/symlinking them.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消