[英]Why am I getting 'Permission Denied' on my static assets?
Question basically says it all. 问题基本上都说明了一切。 When I try to access my calendar page (which contains events), I get the following error: 当我尝试访问我的日历页面(包含事件)时,我收到以下错误:
Permission denied - /Users/usernam/sitter/tmp/cache/assets/development/sass
(in /Users/username/sitter/app/assets/stylesheets/events.css.scss)
i've done a chmod 777 on all directories in my rails directory (ie in myapp directory, i've done chmod 777 *). 我已经在我的rails目录中的所有目录上完成了一个chmod 777(即在myapp目录中,我已经完成了chmod 777 *)。
Not sure what I should be doing instead or in addition. 不确定我应该做什么或者另外做什么。
Add a -R to your chmod. 在您的chmod中添加-R。 Simply adding the star will only do the files. 只需添加星标就可以完成文件了。 Chmod -R 777 * should work. Chmod -R 777 *应该可以工作。 Although you may have some ownership issues that need to be addressed. 虽然您可能有一些需要解决的所有权问题。 I would look into using chown instead of granting all access to everyone. 我会考虑使用chown而不是授予所有人访问权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.