Skip to content

Commit

Permalink
Rackup file. Requires the modified Waves (included as a submodule.)
Browse files Browse the repository at this point in the history
  • Loading branch information
rue committed Dec 15, 2008
1 parent b41008e commit 15cc158
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions config.ru
@@ -1,15 +1,19 @@
# Default rackup script to run Giraffe on Waves.
#
# Use this only if you have a running server already.
#

lib_dir = File.join(File.dirname(__FILE__), "lib")
$LOAD_PATH.unshift(lib_dir) if File.directory?(lib_dir)
WAVES = ENV["WAVES"] || File.join(File.dirname(__FILE__), "waves", "lib")

require "sinatra/lib/sinatra"
$LOAD_PATH.unshift WAVES

Sinatra::Application.default_options.merge!(
:run => false,
:env => ENV['RACK_ENV'],
:raise_errors => true
)
require "waves"
require "waves/runtime/rackup"

require 'giraffe'
# Rack configuration is defined along with the rest
# of it in the application itself. No point moving
# it here.
#
run Waves::Rackup.load(:startup => "run_giraffe_run.rb")

run Sinatra.application
>>>>>>> Rackup file. Requires the modified Waves (included as a submodule.):config.ru

0 comments on commit 15cc158

Please sign in to comment.