Use bundled Rack
WEBrick in Rack doesn't respond to TERM signals. This is a problem (especially on MacOSX). Make sure we use our bundled version instead.
This commit is contained in:
parent
4e14ccc74d
commit
b30002261a
|
@ -7,7 +7,7 @@ rexml_versions = ['', File.dirname(__FILE__) + '/../vendor/plugins/rexml/lib/'].
|
||||||
`ruby -r #{v + 'rexml/rexml'} -e 'p REXML::VERSION'`.split('.').collect {|n| n.to_i} }
|
`ruby -r #{v + 'rexml/rexml'} -e 'p REXML::VERSION'`.split('.').collect {|n| n.to_i} }
|
||||||
$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rexml/lib') if (rexml_versions[0] <=> rexml_versions[1]) == -1
|
$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rexml/lib') if (rexml_versions[0] <=> rexml_versions[1]) == -1
|
||||||
|
|
||||||
$: << File.dirname(__FILE__) + '/../vendor/plugins/rack/lib'
|
$:.unshift(File.dirname(__FILE__) + '/../vendor/plugins/rack/lib')
|
||||||
require File.join(File.dirname(__FILE__), 'boot')
|
require File.join(File.dirname(__FILE__), 'boot')
|
||||||
|
|
||||||
require 'active_support/secure_random'
|
require 'active_support/secure_random'
|
||||||
|
|
2
instiki
2
instiki
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
$: << File.dirname(__FILE__) + '/vendor/plugins/rack/lib'
|
$:.unshift(File.dirname(__FILE__) + '/vendor/plugins/rack/lib')
|
||||||
# Executable file for a gem
|
# Executable file for a gem
|
||||||
# must be same as ./instiki.rb
|
# must be same as ./instiki.rb
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue