Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets stop working randomly #111

westonganger opened this issue Dec 12, 2014 · 2 comments


None yet
2 participants
Copy link

commented Dec 12, 2014

All of my assets stop working but the page still loads. This originally happened after adding a .env file but I reinstalled prax and got it working but now all of a sudden its back. It could be possible its not using the gems specified in my Gemfile because my rack version is locked at 1.4.5 yet in the error below its using 1.6.0.beta2. I tried added the .praxconfig file from the wiki page to no avail.

I, [2014-12-12T15:24:20.325741 #13791] INFO -- : Respawning failed worker
E, [2014-12-12T15:24:20.326077 #13791] ERROR -- : NameError: uninitialized constant Rack::File::CONTENT_TYPE
/home/weston/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.6.0.beta2/lib/rack/file.rb:67:in serving' /opt/prax/lib/prax/public_file.rb:20:instream_to'
/opt/prax/lib/prax/handler.rb:19:in handle' /opt/prax/lib/prax.rb:20:inperform'
/opt/prax/lib/prax/microworker.rb:84:in block in work' /opt/prax/lib/prax/microworker.rb:77:ineach'
/opt/prax/lib/prax/microworker.rb:77:in work' /opt/prax/lib/prax/microworker.rb:63:inblock in spawn'

@ysbaddaden ysbaddaden added the bug label Dec 16, 2014


This comment has been minimized.

Copy link

commented Dec 16, 2014

Maybe there are 2 problems here:

  1. what's your Ruby version manager?
  2. maybe Rack 1.6+ dropped a constant. I'll have a look.

This comment has been minimized.

Copy link

commented Dec 16, 2014

I was missing a simple require "rack" which defines the CONTENT_TYPE constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.