Posted by
stoyan on 15-Nov-2006
Junebug is a simple, clean, minimalist wiki intended for personal use. Built on Camping web microframework. Sqlite3 database backend. Features:
- Simple installation (via gems)
- Standalone operation. No need to run a webserver.
- SQL database backend for reliability.
Junebug Wiki creates a folder with your complete wiki contents in it—the database, the images, even the script to start and stop it. A lib directory as well, for plugins and, possibly, working versions of all the dependencies.
Posted by
stoyan on 14-Nov-2006
After seen a small webservers in Perl and Ruby here is my try with using Mongrel :
Start an webserver on all interfaces (0.0.0.0), port 3002, serving static pages from ./html/ directory:
require 'mongrel'
config = Mongrel::Configurator.new :host => "0.0.0.0", :port => 3002 do
listener { uri "/", :handler => Mongrel::DirHandler.new("html/") }
trap("INT") { stop }
run
end
config.join
And with adding some statistics (on http://…/status/ URL):
#!/usr/bin/env ruby
require 'rubygems'
require 'mongrel'
require 'yaml'
stats = Mongrel::StatisticsFilter.new(:sample_rate => 1)
config = Mongrel::Configurator.new :host => "0.0.0.0", :port => 3002 do
listener do
uri "/", :handler => Mongrel::DirHandler.new("html/")
uri "/", :handler => stats
uri "/status", :handler => Mongrel::StatusHandler.new(:stats_filter => stats)
end
trap("INT") { stop }
run
end
puts "Mongrel running on 0.0.0.0:3002 with docroot ./html/"
config.join
I’m using it for serving static pages, generated with Rote – pretty fast