Sha256: fe8aed5795bb5b0507f79a103749b2d97eca95300c0b3301533e128344d9c1f4

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 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
jacana_server.start

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jacana-0.0.5 bin/jacana
jacana-0.0.4 bin/jacana
jacana-0.0.3 bin/jacana