diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-11 00:34:42 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-11 00:35:43 +0000 |
commit | b065cab4fa5ca25302220c20563398a57069ae08 (patch) | |
tree | a2305ea7eaf35427b10c1cdb889b9bdfa0797558 | |
parent | 1468604be898d17c2cf2da519dccd493c58f4282 (diff) | |
download | rainbows-b065cab4fa5ca25302220c20563398a57069ae08.tar.gz |
We can get away with a single stack frame reduction. Unicorn itself has more stack reductions, but Rainbows! is further behind in this area.
-rw-r--r-- | bin/rainbows | 2 | ||||
-rw-r--r-- | lib/rainbows.rb | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/bin/rainbows b/bin/rainbows index b3606ac..d56c5bb 100644 --- a/bin/rainbows +++ b/bin/rainbows @@ -118,4 +118,4 @@ if $DEBUG end Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize] -Rainbows.run(app, options) +Rainbows::HttpServer.new(app, options).start.join diff --git a/lib/rainbows.rb b/lib/rainbows.rb index bd2c106..64d2d03 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -61,12 +61,6 @@ module Rainbows end # :stopdoc: - # runs the Rainbows! HttpServer with +app+ and +options+ and does - # not return until the server has exited. - def self.run(app, options = {}) # :nodoc: - HttpServer.new(app, options).start.join - end - class << self attr_accessor :server attr_accessor :cur # may not always be used |