Sha256: 8309b43af396baf3f7e0f89f44ac5819c8adc46d0b2a9842fa92b0c5f0130df4

Contents?: true

Size: 1.3 KB

Versions: 9

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,      'cf8e8a1d3653fcfb2332d8b1af9f6762c3c45ea12144bb5f15cd5618cc8e453b45a02dd304bdd791489dcd1ae35b807e4b4f4e6f7faedb551e76996c0f3c11c6'
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

9 entries across 9 versions & 1 rubygems

Version Path
rhoconnect-3.0.5 bench/benchapp/config.ru
rhoconnect-3.0.4 bench/benchapp/config.ru
rhoconnect-3.0.3 bench/benchapp/config.ru
rhoconnect-3.0.2 bench/benchapp/config.ru
rhoconnect-3.0.1 bench/benchapp/config.ru
rhoconnect-3.0.0 bench/benchapp/config.ru
rhoconnect-3.0.0.rc1 bench/benchapp/config.ru
rhoconnect-3.0.0.beta3 bench/benchapp/config.ru
rhoconnect-3.0.0.beta1 bench/benchapp/config.ru