dukechronicle / chronjs

Source code for a former version of dukechronicle.com
dukechronicle.com
8 stars 1 forks source link

CSS_Paths is not defined #285

Closed deanchen closed 12 years ago

deanchen commented 12 years ago

message path/app/views/site/layout.jade message/app/views/site/layout.jade:20 18| link(rel="stylesheet", href=static_cdn + "/css/reset.css") 19| link(rel="stylesheet", href=css_paths.site)

20| //if lt IE 9 21| link(rel="stylesheet", href=css_paths['style-ie']) 22| 23| // typekitload code should always load first because it will cause a relayout of dom

css_paths is not defined typenot_defined arguments 0css_paths stackReferenceError: /app/views/site/layout.jade:20 18| link(rel="stylesheet", href=static_cdn + "/css/reset.css") 19| link(rel="stylesheet", href=css_paths.site)

20| //if lt IE 9 21| link(rel="stylesheet", href=css_paths['style-ie']) 22| 23| // typekitload code should always load first because it will cause a relayout of dom

css_paths is not defined at anonymous (eval at (/app/node_modules/jade/lib/jade.js:161:8)) at Object. (/app/node_modules/jade/lib/jade.js:166:12) at ServerResponse._render (/app/node_modules/express/lib/view.js:425:21) at ServerResponse.render (/app/node_modules/express/lib/view.js:318:17) at ServerResponse._render (/app/node_modules/express/lib/view.js:432:10) at ServerResponse.render (/app/node_modules/express/lib/view.js:318:17) at /app/thechronicle_modules/route/lib/site.js:321:9 at callbacks (/app/node_modules/express/lib/router/index.js:272:11) at param (/app/node_modules/express/lib/router/index.js:246:11) at pass (/app/node_modules/express/lib/router/index.js:253:5)

jimpo commented 12 years ago

Yeah, for a few seconds the server runs before the css compiles. I've been meaning to use async.parallel during runSite, but I haven't done it yet. On Apr 13, 2012 10:46 PM, "Dean Chen" < reply@reply.github.com> wrote:

message path/app/views/site/layout.jade message/app/views/site/layout.jade:20 18| link(rel="stylesheet", href=static_cdn + "/css/reset.css") 19| link(rel="stylesheet", href=css_paths.site)

20| //if lt IE 9 21| link(rel="stylesheet", href=css_paths['style-ie']) 22| 23| // typekitload code should always load first because it will cause a relayout of dom

css_paths is not defined typenot_defined arguments 0css_paths stackReferenceError: /app/views/site/layout.jade:20 18| link(rel="stylesheet", href=static_cdn + "/css/reset.css") 19| link(rel="stylesheet", href=css_paths.site)

20| //if lt IE 9 21| link(rel="stylesheet", href=css_paths['style-ie']) 22| 23| // typekitload code should always load first because it will cause a relayout of dom

css_paths is not defined at anonymous (eval at (/app/node_modules/jade/lib/jade.js:161:8)) at Object. (/app/node_modules/jade/lib/jade.js:166:12) at ServerResponse._render (/app/node_modules/express/lib/view.js:425:21) at ServerResponse.render (/app/node_modules/express/lib/view.js:318:17) at ServerResponse._render (/app/node_modules/express/lib/view.js:432:10) at ServerResponse.render (/app/node_modules/express/lib/view.js:318:17) at /app/thechronicle_modules/route/lib/site.js:321:9 at callbacks (/app/node_modules/express/lib/router/index.js:272:11) at param (/app/node_modules/express/lib/router/index.js:246:11) at pass (/app/node_modules/express/lib/router/index.js:253:5)


Reply to this email directly or view it on GitHub: https://github.com/thechronicle/website/issues/285

deanchen commented 12 years ago

Ok, this is a more urgent issue than it appears because the site will show an error page while various components are loading. These error pages will be cached by varnish and persist for 30 minutes randomly depending on which varinish server is hit.