Sha256: 27622a2124adf63d57a1a907ae9782b093ade97205732925bdbebe8a17745212

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/env ruby

path = File.join(File.dirname(__FILE__),'..','..','lib')
$:.unshift path

# Try to load vendor-ed rhosync, otherwise load the gem
begin
  require 'vendor/rhosync/lib/rhosync/server'
  require 'vendor/rhosync/lib/rhosync/console/server'
rescue LoadError
  require 'rhosync/server'
  require 'rhosync/console/server'
end

# By default, turn on the resque web console
require 'resque/server'

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

# Rhosync server flags
Rhosync::Server.disable :run
Rhosync::Server.disable :clean_trace
Rhosync::Server.enable  :raise_errors
Rhosync::Server.set     :secret,      '<changeme>'
Rhosync::Server.set     :root,        ROOT_PATH
Rhosync::Server.use     Rack::Static, :urls => ["/data"], :root => Rhosync::Server.root

# Load our rhosync application
require 'application'

# Setup the url map
run Rack::URLMap.new \
	"/"         => Rhosync::Server.new,
	"/resque"   => Resque::Server.new, # If you don't want resque frontend, disable it here
	"/console"  => RhosyncConsole::Server.new # If you don't want rhosync frontend, disable it here

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rhosync-2.1.18.beta2 bench/benchapp/config.ru
rhosync-2.1.18.beta1 bench/benchapp/config.ru
rhosync-2.1.17 bench/benchapp/config.ru
rhosync-2.1.17.beta7 bench/benchapp/config.ru
rhosync-2.1.17.beta6 bench/benchapp/config.ru
rhosync-2.1.17.beta5 bench/benchapp/config.ru
rhosync-2.1.17.beta4 bench/benchapp/config.ru
rhosync-2.1.17.beta3 bench/benchapp/config.ru
rhosync-2.1.17.beta2 bench/benchapp/config.ru
rhosync-2.1.17.beta1 bench/benchapp/config.ru
rhosync-2.1.16 bench/benchapp/config.ru
rhosync-2.1.15 bench/benchapp/config.ru
rhosync-2.1.14 bench/benchapp/config.ru
rhosync-2.1.13 bench/benchapp/config.ru
rhosync-2.1.12 bench/benchapp/config.ru
rhosync-2.1.11 bench/benchapp/config.ru
rhosync-2.1.10 bench/benchapp/config.ru
rhosync-2.1.7 bench/benchapp/config.ru
rhosync-2.1.6 bench/benchapp/config.ru
rhosync-2.1.3 bench/benchapp/config.ru