Configuration issue #4
Comments
Try the newer version?
You shouldn't need to add Sinatra to your Gemfile since it's a dependency of Fist Face. Everything there looks correct to me, though. Have you also tried requiring Fist Face in the config.ru?
|
I re did all the steps but modifying the Gemfile and the config.ru as you suggested. But the same error appears in heroku logs |
I had a similar error, I changed the config.ru to fully-qualify the FistFace namespace. require 'rubygems' I've not uploaded any fonts yet but I can now start the server without it crashing on either Heroku or locally. Tomorrow I'll try out with some fonts. @croaky thanks for this awesome project, was about to try to hack together this basic thing to support an app I'm working on as well, but found FistFace and saved a LOT of time. Much appreciated and much respect to the ThoughtBot. |
Okay, I played around with getting it to run this afternoon. A few things to be aware of. I'm betting that @croaky wrote this back before the great "Cedar Switcheroo" at Heroku. If you're like me and trying to get this running since they changed the default stack you'll likely have problems as well. Another thing is that you need to call "run Sinatra::Application" at the end of your config.ru. I'm not experienced with writing module Sinatra apps so I just had to goog it and found other people with the same problem. It appears to be a Sinatra issue. So, what needs to be done? Not a lot actually...
encoding: utf-8require 'rubygems' run Sinatra::FistFace Everything else in the original instructions worked. It's probably better to run on bamboo anyway as Cedar removed the caching layer and all requests go directly to the app server. |
Thanks, @just3ws. I just tested it out myself, saw the same result. Updated the README with improved instructions. Cheers! |
Hi, i'm getting this error
I followed the steps exactly as they are in the docs but in heroku logs i keep getting this error
Unexpected error while processing request: uninitialized constant Rack::Builder::FistFace
When i got to myherokuapp.herokuapp.com/myfont.css
I successfully pushed the changes and i can see the dir content
Both in local and in heroku doing heroku run bash
I think its a gem issue, the contents of my Gemfile
And my config.ru
And i'm sure my bucket url is fine as i use it lin other apps
heroku config:add S3_URL=https://s3.amazonaws.com/mybucket
Is there any assumed steps that i'm missing?
The text was updated successfully, but these errors were encountered: