Sha256: bab51447dfc3e867c3754ef4152b77eeefae41882ed89e83fcef8af33dbbbdaf

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 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') { jacana_server.shutdown }

jacana_server.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jacana-0.0.7 bin/jacana