Sha256: 2ae1d1c476b3b4b6967c91d917a801dab449a4e480cfe9141b792edfa39e48d1

Contents?: true

Size: 1.14 KB

Versions: 9

Compression:

Stored size: 1.14 KB

Contents

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

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

if ENV['DEBUG'] == 'yes'
  ENV['APP_TYPE'] = 'rhosync'
  ENV['ROOT_PATH'] = ROOT_PATH
  require 'debugger'
end

require 'rhoconnect/server'
require 'rhoconnect/web-console/server'
require 'resque/server'

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

# Load our rhoconnect application
require './application'
require './my_server'

# Setup the url map
run Rack::URLMap.new \
	'/'         	=> MyServer.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 examples/simple/config.ru
rhoconnect-3.3.5 examples/simple/config.ru
rhoconnect-3.3.4 examples/simple/config.ru
rhoconnect-3.3.3 examples/simple/config.ru
rhoconnect-3.3.2 examples/simple/config.ru
rhoconnect-3.3.1 examples/simple/config.ru
rhoconnect-3.3.1.beta4 examples/simple/config.ru
rhoconnect-3.3.1.beta3 examples/simple/config.ru
rhoconnect-3.3.1.beta2 examples/simple/config.ru