Sha256: 7d9c00ac1d414611c5f8cc2d288971c50a649ec903bbfb0c55dc6bfbed62bade
Contents?: true
Size: 1.06 KB
Versions: 45
Compression:
Stored size: 1.06 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'thin' #require 'gaptool-server/app.rb' # Hijack the thin module to set default options to run in the right place module Thin class GaptoolRunner < Thin::Runner def initialize(argv) @argv = argv # Default options values @options = { :chdir => File.expand_path('..', File.dirname(__FILE__)), :environment => ENV['RACK_ENV'] || 'development', :address => '0.0.0.0', :port => Server::DEFAULT_PORT, :timeout => Server::DEFAULT_TIMEOUT, :log => 'log/thin.log', :pid => 'tmp/pids/thin.pid', :max_conns => Server::DEFAULT_MAXIMUM_CONNECTIONS, :max_persistent_conns => Server::DEFAULT_MAXIMUM_PERSISTENT_CONNECTIONS, :require => [], :wait => Controllers::Cluster::DEFAULT_WAIT_TIME } parse! end end end # Run with thin, with thin args Thin::GaptoolRunner.new(ARGV).run!
Version data entries
45 entries across 45 versions & 1 rubygems