Sha256: 9433718e668cf7ca64d0b005659cde40f8c6cf5765e499ea73169c133e570071
Contents?: true
Size: 1.14 KB
Versions: 12
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.enable :stats 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 # disable Async mode if Debugger is used if ENV['DEBUG'] == 'yes' Rhoconnect::Server.set :use_async_model, false end # Load our rhoconnect application 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
12 entries across 12 versions & 1 rubygems