Questions tagged «static-content-deploy»

16
Magento2:重新生成pub / static文件夹中的CSS文件
我已经安装了Magento 2并设置了开发人员模式,然后又安装了一个包含css和js文件的模块。该模块可以正常工作,并且从pub / static文件夹渲染css和js文件。现在,我已经在模块目录的css文件中更改了css并运行命令 php bin/magento setup:static-content:deploy 但Magento并未在pub / static CSS文件中进行新的更改,因此我得到的是旧的CSS文件内容。有谁知道如何在pub / static文件夹中重新生成整个CSS文件?

7
运行安装程序时出现奇怪错误:模块安装后升级
我尝试安装wyomind google shopping,并且在运行bin / magento setup:upgrade时遇到以下错误。 [UnexpectedValueException] Unable to retrieve deployment version of static files from the file system. [Magento\Framework\Exception\FileSystemException] Cannot read contents from file "/var/www/vanillamage2/public_html/pub/stati c/deployed_version.txt" Warning!file_get_contents(/var/www/vanillamage2/pub lic_html/pub/static/deployed_version.txt): failed to open stream: No such f ile or directory 我已经在2个单独的服务器和3个Magento 2.1.7的单独安装上进行了尝试,但是每次都收到相同的问题。我在这里看到了类似的问题: https://github.com/magento/magento2/issues/6426 和 http://olivernam.com/magento2-frontpage-error-after-deploying-static-files 因此,尝试了这里提到的许多解决方案,包括重新部署静态文件,重置权限,删除静态内容,放置空的deployment_version.txt等,但是没有任何运气。我什至将文件设置为777,拥有正确的所有者,并且可以肯定这不是问题,因为下面的解决方案不会更改此文件的权限。 我只有两种获取设置的方法:运行升级。 禁用插件。 将app / code …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.