winton/stasis — Issue #33: Stasis Render on Heroku
Author: meskyanichi
Created: 2012-02-01 01:04:24+00:00
State: open

Hi there.

I'm trying to get Stasis to render on Heroku, but am not being very successful. Whenever I run `stasis .` from the Heroku console, it returns this error:

```
NameError: uninitialized constant #::Thin::Controllers::Controller::Logging
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:23:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:22:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:19:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:3:in `_add'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis/scope/controller.rb:30:in `instance_eval'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis/scope/controller.rb:30:in `_add'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:100:in `block in initialize'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:97:in `reject!'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:97:in `initialize'
from (irb):4:in `new'
from (irb):4
from /usr/local/bin/irb:12:in `

'
```

Same happens when I manually create a new Stasis object:

```
irb(main):004:0> s = Stasis.new(".")

NameError: uninitialized constant #::Thin::Controllers::Controller::Logging
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:23:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:22:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:19:in `'
from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:3:in `_add'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis/scope/controller.rb:30:in `instance_eval'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis/scope/controller.rb:30:in `_add'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:100:in `block in initialize'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:97:in `reject!'
from /app/vendor/bundle/ruby/1.9.1/gems/stasis-0.1.14/lib/stasis.rb:97:in `initialize'
from (irb):4:in `new'
from (irb):4
from /usr/local/bin/irb:12:in `

'
```

I do not have this issue locally and I have no idea why this is happening. Does anyone else?

Thanks!