Heroku帮助:ActionView :: Template :: Error(Permission de nied

时间:2011-06-01 09:17:41

标签: ruby-on-rails ruby ruby-on-rails-3

我在heroku上收到此错误:

2011-06-01T09:13:29+00:00 app[web.1]: Started GET "/" for MYIP at 2011
-06-01 11:13:29 +0200
2011-06-01T09:13:29+00:00 app[web.1]:
2011-06-01T09:13:29+00:00 app[web.1]: ActionView::Template::Error (Permission de
nied - /app/public/javascripts/.permissions_check.6011580.1.163351):
2011-06-01T09:13:29+00:00 app[web.1]:     19:                         <meta http
-equiv="Content-type" content="text/html; charset=utf-8" />
2011-06-01T09:13:29+00:00 heroku[router]: GET www.vinderhimlen.dk/ dyno=web.1 qu
eue=0 wait=0ms service=476ms bytes=934
2011-06-01T09:13:29+00:00 app[web.1]:     20:                 <% end %>
2011-06-01T09:13:29+00:00 app[web.1]:     21:                 <%= stylesheet_lin
k_tag "public", "rateit" %>
2011-06-01T09:13:29+00:00 app[web.1]:     22:                 <%= javascript_inc
lude_tag 'rails.js', 'jquery.js', 'vis.js', 'jquery.rateit.js', :cache => true %
>
2011-06-01T09:13:29+00:00 app[web.1]:     23:                              <scri
pt type="text/javascript">
2011-06-01T09:13:29+00:00 app[web.1]:     24: $(document).ready(function() {
2011-06-01T09:13:29+00:00 app[web.1]:     25:
2011-06-01T09:13:29+00:00 app[web.1]:   app/views/layouts/application.html.erb:2
2:in `_app_views_layouts_application_html_erb__1541079903689551625_21945980__132
3620808994783512'
2011-06-01T09:13:29+00:00 app[web.1]:
2011-06-01T09:13:29+00:00 app[web.1]:
2011-06-01T09:13:29+00:00 heroku[web.1]: Stopping process with SIGTERM
2011-06-01T09:13:29+00:00 app[web.1]: >> Stopping ...
2011-06-01T09:13:29+00:00 heroku[web.1]: Process exited

Iceberg@ICEBERG-PC /c/rails/konkurranceportalen (master)
$

1 个答案:

答案 0 :(得分:2)

您的应用程序正在尝试将您的javascript文件编译为一个,然后将其缓存在磁盘上,而Heroku将不允许该磁盘,因为它不允许对磁盘进行写访问。从:cache => true行中删除javascript_include_tag,找到为Heroku执行此操作的替代方法。