Sha256: 1ea1dd5d68b90c91765ef7eed20bb1970c81c87f738b5383d597113eaa58f9d1

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

#!/usr/bin/env ruby

require "jacana"
require "optparse"


options = {
    :Doc_Root => './',
    :Port => 1453,
    :Php_Path => '/usr/bin/env',
}

opt = OptionParser.new

opt.on('-d VAL') do |docroot|
  options[:Doc_Root] = docroot
end

opt.on('-p VAL') do |port|
  options[:Port] = port.to_i
end

opt.on('-s VAL') do |php_path|
  options[:Php_Path] = php_path.to_s
end
opt.parse!

jacana_server = Jacana::JacanaHttpServer.new options

trap('INT') { s.shutdown }

jacana_server.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jacana-0.0.6 bin/jacana