I deleted the pub folder of my magento installation.
Then I used
php bin/magento setup:static-content:deploy
and now the site has no CSS at all.
How can I fix that?
Thanks!
deployerrormagento2
I deleted the pub folder of my magento installation.
Then I used
php bin/magento setup:static-content:deploy
and now the site has no CSS at all.
How can I fix that?
Thanks!
Best Answer
Don't delete the entire
pub
folder. Deletepub/static/*
if/when needed.You are most likely missing three critical files that will not be automatically regenerated:
If you have a backup or a local dev site, I suggest finding and restoring them from there. Otherwise, you can find them in the appropriate branch of the Magento github repository (depending on what version you are running): https://github.com/magento/magento2