문제

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

enter image description here

enter image description here

enter image description here

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top