Installing magento 2 does not deploy the /pub/static/frontend and backend

前端 未结 5 1239
迷失自我
迷失自我 2021-01-11 13:18

I\'m having this weird error and I did not suceed to find the origin. First of all I would like to say that I succeeded to perform some installation of Magento 2 on a window

5条回答
  •  迷失自我
    2021-01-11 14:10

    First please delete 'static' folder from 'pub/static' in magento 2 before delete this folder please copy .htaccess file from this folder in other folder in your pc. <-- Changes in app\code\Magento\Developer\etc\di.xml -->

    Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink  
    

    <--to-->

    Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
    

    After that using cmd/shell run these commands

    php bin/magento setup:static-content:deploy -f
    

    and

    php bin/magento deploy:mode:set developer
    

    After runing these commands .Paste old .htaccess file into new static folder. Thats it. And Clear Full Cache.

    php bin/magento cache:clean
    

    Your project working now enjoy!

提交回复
热议问题