指南针/ Sass写入具有“无访问权限”的文件OSX上Everyone组的权限 [英] Compass/Sass writing files with "No Access" permissions for Everyone group on OSX

查看:106
本文介绍了指南针/ Sass写入具有“无访问权限”的文件OSX上Everyone组的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Sass和Compass(在osx上),并使用罗盘手表来编译我的.scss文件。编译运行正常,因为.css文件是使用正确的内容创建的。但是,查看权限显示该文件是写入Everyone组为无访问导致CSS不显示在页面上。当我手动更正权限一切都很好,但任何后续的保存导致指南针覆盖文件与无访问权限。

I'm using Sass and Compass (on osx) and using "compass watch" to compile my .scss files. The compilation runs OK, in that the .css files are created with the correct content. However, looking at the permissions shows that the file is written with the "Everyone" group as having "No Access" resulting in the css not appearing on the page. When I correct the permissions manually all is well again, but any subsequent saves result in compass overwriting the file with "No access" permissions again.

我不知道这里的问题是我的config.rb(但我不这么认为),或在sass子目录下的权限。我删除了.sass-cache并重复的设置。指南针如何获得其写入权限?

I'm not sure whether the problem here is with my config.rb (but I don't think so), or the permissions within the sass subdirectories. I've deleted .sass-cache and repeated the setup. How does compass derive its write permissions?

任何帮助将非常感谢。

Any help would be greatly appreciated.

感谢,Steve

推荐答案

虽然不是解决方案,对于Compass,Sass,目录权限是否有故障是完全在项目结构之外创建一个新目录,并在该项目的终端中运行以下内容

Although not a solution, the test for whether Compass, Sass, directory permissions were at fault was to create a new directory entirely outside of the project structure and run the following in the terminal for that project

compass create
compass watch

生成的文件具有读取权限。

I then checked whether the css files produced had Read permissions.

在我的例子中,他们有预期的读取权限(Everyone:read),所以我认为它是与原项目的目录权限相关的。作为一个修复我重新创建目录结构在另一个位置,复制在与CSS / SASS无关的文件,然后再次用指南针创建,罗盘手表生成css。

In my case, they had the expected Read permissions (Everyone: read) so I concluded that it was something related to the directory permission of the original project. As a fix I recreated the directory structure in another location, copied over the files unrelated to CSS/SASS and then began again with compass create, compass watch to generate the css.

我不相信这与目前的Sass问题有关。

I don't believe this was related to the current Sass issue

这篇关于指南针/ Sass写入具有“无访问权限”的文件OSX上Everyone组的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆