505 problem "storeSheets" stylesheet_link_tag problem

9 views
Skip to first unread message

sgehrman

unread,
Jan 19, 2012, 10:45:51 PM1/19/12
to Potion Store Discussions
Just updated to the latest master code

I put it on heroku and it doesn't like this "storeSheets" thing


<%= stylesheet_link_tag "store", "mytheme", :media => "all", :cache
=> "storeSheets" %>

Anyone know what is happening? This code is fairly new.

2012-01-20T03:28:59+00:00 app[web.1]: ActionView::TemplateError
(Permission denied - /app/public/stylesheets/storeSheets.css) on line
#7 of app/views/layouts/store.html.erb:
2012-01-20T03:28:59+00:00 app[web.1]: 4: <meta http-equiv="Content-
Type" content="text/html; charset=UTF-8"/>
2012-01-20T03:28:59+00:00 app[web.1]: 5: <title><%=
$STORE_PREFS['store_name']%></title>
2012-01-20T03:28:59+00:00 app[web.1]: 7: <%=
stylesheet_link_tag "store", "mytheme", :media => "all", :cache =>
"storeSheets" %>
2012-01-20T03:28:59+00:00 app[web.1]: 6: <link rel="icon" href="/
favicon.png" type="image/png"/>
2012-01-20T03:28:59+00:00 app[web.1]: 8: <!--[if lt IE 7]>
2012-01-20T03:28:59+00:00 app[web.1]: 9: <script
language="JavaScript">window.attachEvent("onload", correctPNG);</
script>
2012-01-20T03:28:59+00:00 app[web.1]: 10: <![endif]-->
2012-01-20T03:28:59+00:00 app[web.1]:
2012-01-20T03:28:59+00:00 app[web.1]: app/views/layouts/
store.html.erb:7
2012-01-20T03:28:59+00:00 app[web.1]: app/controllers/store/
order_controller.rb:9:in `index'
2012-01-20T03:28:59+00:00 app[web.1]: /home/heroku_rack/lib/
static_assets.rb:9:in `call'
2012-01-20T03:28:59+00:00 app[web.1]: /home/heroku_rack/lib/
last_access.rb:15:in `call'
2012-01-20T03:28:59+00:00 app[web.1]: /home/heroku_rack/lib/
date_header.rb:14:in `call'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
connection.rb:74:in `catch'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
connection.rb:74:in `pre_process'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
connection.rb:76:in `pre_process'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
connection.rb:57:in `process'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
connection.rb:42:in `receive_data'
2012-01-20T03:28:59+00:00 app[web.1]: eventmachine (0.12.10) lib/
eventmachine.rb:256:in `run_machine'
2012-01-20T03:28:59+00:00 app[web.1]: eventmachine (0.12.10) lib/
eventmachine.rb:256:in `run'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
server.rb:156:in `start'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
controllers/controller.rb:80:in `start'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
runner.rb:177:in `run_command'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
runner.rb:177:in `send'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
backends/base.rb:57:in `start'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) lib/thin/
runner.rb:143:in `run!'
2012-01-20T03:28:59+00:00 app[web.1]: thin (1.2.6) bin/thin:6
2012-01-20T03:28:59+00:00 app[web.1]: /usr/ruby1.8.7/bin/thin:
19:in `load'

sgehrman

unread,
Jan 19, 2012, 11:34:21 PM1/19/12
to Potion Store Discussions
Seems the latest code is not compatible with Heroku.

"Heroku is a read-only deployment environment. Because of that, Rails
can't write all.css to /public/stylesheets/ and fails silently. The
stylesheet_link_tag still links to all.css as long as you use cache =>
true, so the quick fix is not to cache stylesheets on Heroku."

So, I would recommend removing this or fixing it to work on Heroku.

-steve
Reply all
Reply to author
Forward
0 new messages