我在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)
$
您的应用程序正试图将javascript文件编译成一个文件,然后将其缓存在磁盘上,Heroku不允许这样做,因为它不允许对磁盘进行写访问。从javascript_include_tag
行中删除:cache => true
,并为Heroku找到另一种方法。