Require ruby-debug if --debugger option given to binary.
This commit is contained in:
Родитель
54ef22c4ab
Коммит
bca943238f
|
@ -4,6 +4,10 @@ require 'rubygems'
|
|||
|
||||
$: << File.dirname(__FILE__) + "/../lib"
|
||||
|
||||
require 'casserver/server'
|
||||
if ARGV.join.match('--debugger')
|
||||
require 'ruby-debug'
|
||||
puts "=> Debugger Enabled"
|
||||
end
|
||||
require 'casserver'
|
||||
|
||||
CASServer::Server.run!
|
||||
CASServer::Server.run!
|
||||
|
|
|
@ -1,2 +1,14 @@
|
|||
module CASServer
|
||||
end
|
||||
module CASServer; end
|
||||
|
||||
$: << File.expand_path(File.dirname(__FILE__) + '/casserver')
|
||||
$: << File.expand_path(File.dirname(__FILE__) + '/../vendor/isaac_0.9.1')
|
||||
|
||||
require 'active_record'
|
||||
require 'active_support'
|
||||
require 'sinatra/base'
|
||||
require 'haml'
|
||||
require 'logger'
|
||||
$LOG = Logger.new(STDOUT)
|
||||
|
||||
require 'server'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче