开发者

Permission denied - /app/public/javascripts/fancy_box.js Heroku

开发者 https://www.devze.com 2023-02-21 07:06 出处:网络
I am trying to deploy my application on Heroku. I managed to get to this point but it crashed on the Fancybox.js call.

I am trying to deploy my application on Heroku. I managed to get to this point but it crashed on the Fancybox.js call. 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[w开发者_StackOverflow社区eb.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:

    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. I suggest you ensure that the files are in javascript folder before you push to heroku

0

精彩评论

暂无评论...
验证码 换一张
取 消