diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-09 16:47:19 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-09 16:47:19 -0700 |
commit | debbcdc31db2931b27081661114f023bc99ab266 (patch) | |
tree | dd45483916f310b462e56c72fabe1703a879e064 | |
parent | ac6ace3a978b4074b6af6de982e2b6543b7f42cb (diff) | |
download | unicorn-debbcdc31db2931b27081661114f023bc99ab266.tar.gz |
It is no longer relevant (or working) with rackup compatibility.
-rw-r--r-- | Manifest | 6 | ||||
-rw-r--r-- | examples/sinatra/README | 21 | ||||
-rw-r--r-- | examples/sinatra/sinatra_example.rb | 7 | ||||
-rwxr-xr-x | examples/sinatra/unicorn-sinatra-example | 13 |
4 files changed, 3 insertions, 44 deletions
@@ -1,16 +1,16 @@ +.document .gitignore CHANGELOG CONTRIBUTORS +DESIGN GNUmakefile LICENSE Manifest README Rakefile +SIGNALS TODO bin/unicorn -examples/sinatra/README -examples/sinatra/sinatra_example.rb -examples/sinatra/unicorn-sinatra-example ext/unicorn/http11/ext_help.h ext/unicorn/http11/extconf.rb ext/unicorn/http11/http11.c diff --git a/examples/sinatra/README b/examples/sinatra/README deleted file mode 100644 index 2928d16..0000000 --- a/examples/sinatra/README +++ /dev/null @@ -1,21 +0,0 @@ -This is an ultra simple Sinatra setup. - -sinatra_example.rb - - This is a generic Sinatra application, absolutely nothing needs to be - done to make this run with this application to run with Unicorn. - - -unicorn-sinatra-example - - this is the config file/application to execute with unicorn. You can - run it either standalone if "unicorn" is in your path, or by running: - - "unicorn unicorn-sinatra-example" - - -These examples do not load RubyGems. You'll have to set your RUBYLIB -environment variable appropriately for running these examples, for me -it's this: - -$HOME/gems/rack-0.9.1/lib:$HOME/gems/sinatra-0.9.0.2/lib:. diff --git a/examples/sinatra/sinatra_example.rb b/examples/sinatra/sinatra_example.rb deleted file mode 100644 index 70d05c2..0000000 --- a/examples/sinatra/sinatra_example.rb +++ /dev/null @@ -1,7 +0,0 @@ -#!/home/ew/bin/ruby -# this is a standalone Sinatra application, there is absolutely NOTHING -# special that has to be done in this file for running with Unicorn, -# instead take a look at the unicorn-sinatra-example script in this -# directory -require 'sinatra' -get('/') { "hello world\n" } diff --git a/examples/sinatra/unicorn-sinatra-example b/examples/sinatra/unicorn-sinatra-example deleted file mode 100755 index 3472d56..0000000 --- a/examples/sinatra/unicorn-sinatra-example +++ /dev/null @@ -1,13 +0,0 @@ -#!/home/ew/bin/ruby -# putting unicorn in the shebang won't work because unicorn itself is -# a ruby script, so the following is the next best thing: -exec('unicorn', $0) if $0 == __FILE__ - -# the below script is a standalone Sinatra application; absolutely -# nothing special needs to be done in this Sinatra app for running -# with Unicorn -require 'sinatra_example' - -# the following hash needs to be the last statement, as unicorn -# will eval this entire file -{ :app => Sinatra::Application } |