3 # A very simple script to use Potlatch2 locally
4 # without having to install a rails_port.
5 # Run this script on a console, then visit
6 # http://yourmachinename:3333/potlatch2.html
8 # Note that for *very* stupid flash-player reasons
9 # neither 127.0.0.1 nor any other IP nor localhost
10 # will work. Add a hostname to your /etc/hosts if
16 s=HTTPServer.new(:Port => 3333, :DocumentRoot => Dir.pwd, :MaxClients => 1000)
19 %w(INT TERM).each do |signal|
20 trap(signal) { s.shutdown }