嗨,我已经安装了带有示例数据的 magento2。我会部署静态 css/JS 但php bin/magento setup:static-content:deploy
它返回 0 错误的命令但问题仍然存在。deploy.php
另外我在标准目录中找不到文件。
问问题
260 次
3 回答
4
使用以下命令导入示例数据
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
于 2016-10-24T17:17:27.120 回答
0
你写
“bin/magento 设置:静态内容:部署它”
但应该是
“bin/magento 设置:静态内容:部署”
或者
“bin/magento 设置:静态内容:部署语言代码”
于 2016-05-17T06:04:43.643 回答
0
您可以使用以下命令来部署 pub/static 内容:-
php bin/magento 设置:静态内容:部署 en_US es_ES
en_US 和 es_ES 是语言目录。
于 2017-07-11T07:00:14.163 回答