Sha256: f94454c4c3cd5ccec337b3075fdd31207d4d1fa5ff2ee91bb557b9f9977dd19e

Contents?: true

Size: 1.42 KB

Versions: 9

Compression:

Stored size: 1.42 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/web-console/server'
rescue LoadError
  require 'rhoconnect/server'
  require 'rhoconnect/web-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
Rhoconnect::Server.disable :logging
#Rhoconnect::Server.set     :use_async_model, false # true by default
#Rhoconnect::Server.set     :fiberpool_size, 50     # default is 100

# Load our rhoconnect application
require "#{ROOT_PATH}/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.3.6 bench/benchapp/config.ru
rhoconnect-3.3.5 bench/benchapp/config.ru
rhoconnect-3.3.4 bench/benchapp/config.ru
rhoconnect-3.3.3 bench/benchapp/config.ru
rhoconnect-3.3.2 bench/benchapp/config.ru
rhoconnect-3.3.1 bench/benchapp/config.ru
rhoconnect-3.3.1.beta4 bench/benchapp/config.ru
rhoconnect-3.3.1.beta3 bench/benchapp/config.ru
rhoconnect-3.3.1.beta2 bench/benchapp/config.ru