[英]assetic:dump doesn't dump all assets
I run the following 3 commands after I deploy my app in production: 在生产环境中部署应用程序后,我运行以下3条命令:
php bin/console cache:warmup --env=prod
php bin/console assetic:dump --env=prod --no-debug
php bin/console cache:clear --env=prod --no-debug --no-warmup
The latter one outputs the following: 后者输出以下内容:
However in browser nothing loads up: 但是,在浏览器中没有加载任何内容:
Also, this is what the css folder looks like: 另外,这是css文件夹的样子:
What could be the problem? 可能是什么问题呢?
在资产转储之前先清除缓存: php bin/console cache:warmup --env=prod php bin/console cache:clear --env=prod --no-debug --no-warmup php bin/console assetic:dump --env=prod --no-debug
For some reason the following command resolved the issue: 出于某种原因,以下命令解决了该问题:
php bin/console assetic:dump --env=dev
Not sure why since it's in production but it worked. 不知道为什么,因为它已经投入生产,但是可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.