This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/vendor/plugins/liquid/example/server/server.rb

12 lines
348 B
Ruby

require 'webrick'
require 'rexml/document'
require File.dirname(__FILE__) + '/../../lib/liquid'
require File.dirname(__FILE__) + '/liquid_servlet'
require File.dirname(__FILE__) + '/example_servlet'
# Setup webrick
server = WEBrick::HTTPServer.new( :Port => ARGV[1] || 3000 )
server.mount('/', Servlet)
trap("INT"){ server.shutdown }
server.start