简体   繁体   English

为什么我的静态资产上有“权限被拒绝”?

[英]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.

相关问题 为什么我的公用文件夹出现拒绝权限错误? - Why am I getting a permission denied error on my public folder? 为什么在尝试限制部署时会出现“权限被拒绝”的问题? - Why am I getting a “Permission Denied” when trying to cap deploy? 为什么我的预编译资产失败了? - Why am I getting precompiling assets failing? 为什么在由capistrano生成的文件上部署时出现“权限被拒绝”错误? - Why am I getting Permission denied error in deployment on files generated by capistrano? Rails资产目录的权限被拒绝 - Permission Denied for Rails assets directory 为什么我之前没有插入这样的中间件:“ActionDispatch::Static”(运行时错误) - Why am I getting No such middleware to insert before: "ActionDispatch::Static" (RuntimeError) 为什么我得到这个 ActionController::RoutingError (没有路由匹配 [GET] “/users/assets/application.js”) - Why I am getting this ActionController::RoutingError (No route matches [GET] “/users/assets/application.js”) 为什么我会收到此路由错误? ActionController::RoutingError(没有路由匹配 [GET] "/assets/toastr.js.map"): - why am i getting this routing error? ActionController::RoutingError (No route matches [GET] "/assets/toastr.js.map"): 如何理解为什么我一直得到:ssh-copy-id权限被拒绝(公钥)? - How to understand why I keep getting: ssh-copy-id Permission denied (publickey)? 为什么我的Rails资产会被预编译两次? - Why are my Rails assets getting precompiled twice?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM