Sha256: 722288a97cc4c271137efb00facf12591f2043738dd407b1f357267cc2eef98a
Contents?: true
Size: 1.24 KB
Versions: 9
Compression:
Stored size: 1.24 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, '096a8a4212b18d2b281d377f2c350421898a21fec78ac1baf5482c68ee41b30dcc46309cc2fb51ccc37f24789eeaed673a291efdfd0ec42df9f62351e71806f8' Rhoconnect::Server.set :root, ROOT_PATH Rhoconnect::Server.use Rack::Static, :urls => ["/data"], :root => Rhoconnect::Server.root # 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