Sha256: 79a3a709d4338f2599db298e22385b4e6c75096f1a53d813679970ec13801013

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'rack'
require 'rblosxom'

options = {:Port => 7878, :Host => "0.0.0.0", :AccessLog => []}

install_dir = File.join(Gem.dir, "gems", "rblosxom-#{Rblosxom::Version::STRING}")
rackup_file = File.join(install_dir, "config/rackup.ru")
inner_app = eval "Rack::Builder.new {( " +  File.read(rackup_file) + "\n )}.to_app", nil, rackup_file

begin
    server = Rack::Handler::Mongrel
rescue LoadError => e
    server = Rack::Handler::WEBrick
end

app = Rack::Builder.new {
    use Rack::CommonLogger, $stderr  unless server.name =~ /CGI/
    use Rack::ShowExceptions
    use Rack::Lint
    run inner_app
}.to_app

server.run app, options

# vim: ft=ruby:fenc=utf-8:sw=4:ts=4:sts=4:et:
# rblosxom-demo.rb end here

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rblosxom-0.1.5 bin/rblosxom-demo
rblosxom-0.1.4 bin/rblosxom-demo
rblosxom-0.1.3 bin/rblosxom-demo
rblosxom-0.1.2 bin/rblosxom-demo
rblosxom-0.1.1 bin/rblosxom-demo
rblosxom-0.1.0 bin/rblosxom-demo