Sha256: 172bffca2bee8cf29e443268cd2a5d5e582b38bbd59c8656e7387d939ea0b99a
Contents?: true
Size: 927 Bytes
Versions: 13
Compression:
Stored size: 927 Bytes
Contents
#!/usr/bin/env ruby require "#{File.dirname(__FILE__)}/../lib/knjappserver.rb" knjrbfw_path = "" ARGV.each do |arg| if arg == "--active_support" ARGV.delete(arg) require "active_support" require "active_support/core_ext" elsif match = arg.match(/--knjrbfw_path=(.+)/) knjrbfw_path = match[1] ARGV.delete(arg) else print "Unknown argument: '#{arg}'.\n" exit end end require "#{knjrbfw_path}knjrbfw" filepath = File.dirname(__FILE__) + "/../lib/" if File.exists?($0) conf_path = File.dirname($0) + "/../" else conf_path = File.dirname(__FILE__) + "/../" end require "#{conf_path}conf/conf_vars" require "#{$knjappserver_config["knjrbfw"]}knj/autoload" $knjappserver = { :path => File.realpath(File.dirname(__FILE__)) } Knj::Os.chdir_file(File.realpath(__FILE__)) require "#{filepath}include/class_knjappserver.rb" print "Starting knjAppServer.\n" require "#{conf_path}conf/conf"
Version data entries
13 entries across 13 versions & 1 rubygems