assetic:dump doesn't dump all assets

983 Views Asked by At

I run the following 3 commands after I deploy my app in production:

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:

enter image description here

However in browser nothing loads up:

enter image description here

Also, this is what the css folder looks like:

enter image description here

What could be the problem?

2

There are 2 best solutions below

1
Jasson Rojas On

clear cache first before assetic dump: 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

0
user1029829 On

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.