Help!!!! Homepage is broke. Styles are all messed up but only on the homepage
-
15-04-2021 - |
سؤال
I need help. Our site Front end home page is broke. I have rm -rf pub/static/* var/cache/* var/generation/* var/di/* var/view_preprocessed/* generated/*.
Then I ran magento Commands.
1- set maintenance mode
php bin/magento maintenance:enable
2- Upload module or use composer to install module using cli
3- Enable module
php bin/magento module:enable MyCompany_MyModule
4- upgrade database
php bin/magento setup:upgrade
5-compile your code
php bin/magento setup:di:compile
6-static content deploy
php bin/magento setup:static-content:deploy en_US
7-reindex (optional)
php bin/magento indexer:reindex
8-clear cache
php bin/magento cache:flush
9-Disable maintenance mode
php bin/magento maintenance:disable
المحلول
Try to set it to production mode that sometimes solves problems like you are having:
php bin/magento deploy:mode:set production
then it generated all static content that is needed.
لا تنتمي إلى magento.stackexchange