Sha256: f5b960193adf61a492d6a59eb1932085f0cb8c4f0b375c520988b83220613184

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

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

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

# 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'


# Rhoconnect server flags
Rhoconnect::Server.disable :run
Rhoconnect::Server.disable :clean_trace
Rhoconnect::Server.enable  :raise_errors
Rhoconnect::Server.set     :secret,      '<%= @secret %>'
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.1.1 generators/templates/application/config.ru
rhoconnect-3.1.0 generators/templates/application/config.ru
rhoconnect-3.1.0.beta2 generators/templates/application/config.ru
rhoconnect-3.1.0.beta1 generators/templates/application/config.ru
rhoconnect-3.0.6 generators/templates/application/config.ru
rhoconnect-3.0.5 generators/templates/application/config.ru
rhoconnect-3.0.4 generators/templates/application/config.ru
rhoconnect-3.0.3 generators/templates/application/config.ru
rhoconnect-3.0.2 generators/templates/application/config.ru