More Ruby 1.9 Compatibility fixes
Still a long way to go, but these will help.
This commit is contained in:
parent
3efc067f06
commit
1b69b148de
7 changed files with 36 additions and 21 deletions
|
@ -32,13 +32,16 @@ ARGV.options do |opts|
|
|||
|
||||
opts.on("-p", "--port=port", Integer,
|
||||
"Runs Instiki on the specified port.",
|
||||
"Default: 2500") { |OPTIONS[:port]| }
|
||||
"Default: 2500") { }
|
||||
# "Default: 2500") { |OPTIONS[:port]| }
|
||||
opts.on("-b", "--binding=ip", String,
|
||||
"Binds Instiki to the specified ip.",
|
||||
"Default: 0.0.0.0") { |OPTIONS[:ip]| }
|
||||
"Default: 0.0.0.0") { }
|
||||
# "Default: 0.0.0.0") { |OPTIONS[:ip]| }
|
||||
opts.on("-e", "--environment=name", String,
|
||||
"Specifies the environment to run this server under (test/development/production).",
|
||||
"Default: development") { |OPTIONS[:environment]| }
|
||||
"Default: development") { }
|
||||
# "Default: development") { |OPTIONS[:environment]| }
|
||||
opts.on("-d", "--daemon",
|
||||
"Make Instiki run as a Daemon (only works if fork is available -- meaning on *nix)."
|
||||
) { OPTIONS[:server_type] = WEBrick::Daemon }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue