Hacker News new | ask | show | jobs
by ComputerGuru 4950 days ago
Page is down. Here is a formatted copy: https://gist.github.com/4154289
4 comments

Formatted more nicely: http://gist.io/4154289

By the way, check the page first, give bloggers the traffic their content deserves!

Is he not caching his blog with Redis?
The blog uses Redis as primary data store, unfortunately there is Ruby between the user and the DB ;-)

Btw here the problem was mine, I was running the Sinatra app wit "ruby app.rb", and Apache was mod_proxing to this running on port 4567.

By default mod proxy will suspend the connection 60 seconds with an error if the proxed thing returns something wrong. Idiotic default that can be avoided just with:

    ProxyPass / http://127.0.0.1:4567/ retry=0
See "retry=0".
Sorry, the Sinatra based site is deployed with "ruby app.rb". Probably not enough...
> Sorry, the Sinatra based site is deployed with "ruby app.rb". Probably not enough..

Since you are running it as "ruby app.rb", I take it you aren't interested in doing an app server/web server/cache deployment. But if you aren't using thin, that's only a "gem install thin" away.

Use Redis man; I heard is really good.
The irony is too thick to read through.