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

前端 未结 5 1268
迷失自我
迷失自我 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:01

    When installing Magento 2.1.4 from scratch I also confronted with permissions problems and CSS and JS not loading in the page because they were not found by the server although I just ran

    php bin/magento setup:static-content:deploy
    

    and

    php bin/magento cache:clean
    

    It turned out that this setting is needed in the database to access the CSS and JS and have the site loading after first magento2 install.

    insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0); 
    

    This seemed to be the only sollution to have the site up and working.

提交回复
热议问题