repo.or.cz
/
regurgitator.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regurgitator 0.9.1
[regurgitator.git]
/
examples
/
domain_host.ru
blob
126f4361e465ed4ec0fe31f56d57ae51dbfa38a9
1
require 'regurgitator'
2
db = Sequel.connect 'mysql2://user@example.com/mogilefs'
3
use Rack::ContentLength
4
use Rack::ContentType, 'text/plain'
5
err = lambda { |env| [ 404, [], [] ] }
6
run Regurgitator::DomainHost.new(err, :db => db, :suffix => '.example.com')