Sha256: 455e53824e6e620dbce901bcd71da3c3aa034b6afa20bf2bc89c63c4fd530cd7

Contents?: true

Size: 1.3 KB

Versions: 14

Compression:

Stored size: 1.3 KB

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'bundler'
Bundler.require

# Try to load vendor-ed rhoconnect, otherwise load the gem
begin
  require 'vendor/rhoconnect/lib/rhoconnect/server'
  require 'vendor/rhoconnect/lib/rhoconnect/console/server'
rescue LoadError
  require 'rhoconnect/server'
  require 'rhoconnect/console/server'
end

# By default, turn on the resque web console
require 'resque/server'

ROOT_PATH = File.expand_path(File.dirname(__FILE__))

# Rhoconnect server flags
Rhoconnect::Server.disable :run
Rhoconnect::Server.disable :clean_trace
Rhoconnect::Server.enable  :raise_errors
Rhoconnect::Server.set     :secret, '096a8a4212b18d2b281d377f2c350421898a21fec78ac1baf5482c68ee41b30dcc46309cc2fb51ccc37f24789eeaed673a291efdfd0ec42df9f62351e71806f8'
Rhoconnect::Server.set     :root,        ROOT_PATH
Rhoconnect::Server.use     Rack::Static, :urls => ["/data"], :root => Rhoconnect::Server.root

# Load our rhoconnect application
$:.unshift ROOT_PATH if RUBY_VERSION =~ /1.9/ # FIXME: see PT story #16682771
require 'application'

# Setup the url map
run Rack::URLMap.new \
  "/"         => Rhoconnect::Server.new,
  "/resque"   => Resque::Server.new, # If you don't want resque frontend, disable it here
  "/console"  => RhoconnectConsole::Server.new # If you don't want rhoconnect frontend, disable it here

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhoconnect-3.1.1 bench/blobapp/config.ru
rhoconnect-3.1.0 bench/blobapp/config.ru
rhoconnect-3.1.0.beta2 bench/blobapp/config.ru
rhoconnect-3.1.0.beta1 bench/blobapp/config.ru
rhoconnect-3.0.6 bench/blobapp/config.ru
rhoconnect-3.0.5 bench/blobapp/config.ru
rhoconnect-3.0.4 bench/blobapp/config.ru
rhoconnect-3.0.3 bench/blobapp/config.ru
rhoconnect-3.0.2 bench/blobapp/config.ru
rhoconnect-3.0.1 bench/blobapp/config.ru
rhoconnect-3.0.0 bench/blobapp/config.ru
rhoconnect-3.0.0.rc1 bench/blobapp/config.ru
rhoconnect-3.0.0.beta3 bench/blobapp/config.ru
rhoconnect-3.0.0.beta1 bench/blobapp/config.ru