0
這是我的Rails應用程序中的錯誤,在生產中使用nginx。如何解決這個權限問題? style.scss.css
文件在子文件夾voyage
,也許這有一些影響? - 但style.scss.erb
改名爲style.css.erb
效果不錯!Sass上的權限被拒絕
F, [2014-10-27T16:59:57.605973 #790] FATAL -- :
ActionView::Template::Error (Permission denied - /var/www/viewer/tmp/cache/assets/production/sass/f343497db8856b02b621e5e7a375554bcb8decb5
(in /var/www/viewer/app/assets/stylesheets/voyage/style.scss.erb)):
15: %>
16: <link rel="icon" type="image/png" href="<%= url_for @logo.dynamic_attachment_url("64x64#") %>">
17: <% end %>
18: <%= stylesheet_link_tag "voyage/style", media: "all" %>
19: <%= stylesheet_link_tag "voyage/shadowbox", media: "all" %>
20: <%= javascript_include_tag "voyage/voyage" %>
21: <%= javascript_include_tag "voyage/shadowbox" %>
app/views/layouts/voyage.html.erb:18:in `_app_views_layouts_voyage_html_erb__471689782555352934_45021440'
是,存在'/ tmp/cache/assets'。但我注意到,/ tmp/cache/assets/production有777個權限,但/ tmp/cache/assets/prooduction/sass /有755.也許這可能是個問題? – Gediminas 2014-10-27 15:23:01
更改爲777,仍然是相同的錯誤 – Gediminas 2014-10-27 15:32:11
讀取'style.sass.erb'的文件權限是什麼樣子?如在文件的'ls -l'中? – Thermatix 2014-10-27 15:49:17