简体   繁体   English

权限被拒绝-/app/public/javascripts/fancy_box.js Heroku

[英]Permission denied - /app/public/javascripts/fancy_box.js Heroku

I am trying to deploy my application on Heroku. 我正在尝试在Heroku上部署我的应用程序。 I managed to get to this point but it crashed on the Fancybox.js call. 我设法达到了这一点,但是在Fancybox.js调用中崩溃了。 I have no idea what this means. 我不知道这是什么意思。 Can someone help out? 有人可以帮忙吗?

THanks in advance. 提前致谢。

ActionView::TemplateError (Permission denied - /app/public/javascripts/fancy_box.js) on line #10 of app/views/layouts/board.html.erb:
    2011-03-31T09:02:04-07:00 app[web.1]: 7:    <%= stylesheet_link_tag "reset", "style", "subscription", "form-style", "style-admin" %> 
    2011-03-31T09:02:04-07:00 app[web.1]: 8:    <%= javascript_include_tag :defaults %>
    2011-03-31T09:02:04-07:00 app[web.1]: 9:    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>   
    2011-03-31T09:02:04-07:00 app[web.1]: 10:    <%= include_fancy_box %>
    2011-03-31T09:02:04-07:00 app[web.1]: 11: <%=javascript_include_tag 'jquery.form', 'upload' %>

include_fancy_box essentially writes out a lot of javscript_include_tag: include_fancy_box本质上会写出很多javscript_include_tag:

    def include_fancy_box(*args)
        content = javascript_include_tag('jquery.fancy_box/jquery.fancybox-1.2.1.pack.js',
                                         'jquery.fancy_box/jquery.easing.1.3.js',

                                         'jquery.fancy_box/load_fancybox', 
                                         :cache => "fancy_box")
        content << "\n#{stylesheet_link_tag('jquery.fancybox.css')}" 
end

If these js files don't exist then you'll have an issue as you can't write to file system on heroku. 如果这些js文件不存在,那么您将遇到问题,因为无法在heroku上写入文件系统。 I suggest you ensure that the files are in javascript folder before you push to heroku 我建议您在将文件推送到heroku之前,确保文件位于javascript文件夹中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM