Sha256: b49065453217921fad2a6296c431217c3e6882860a0315b28113239b6c57ad19

Contents?: true

Size: 1.05 KB

Versions: 28

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env ruby

# 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     :environment, :development
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

28 entries across 28 versions & 1 rubygems

Version Path
rhosync-2.1.1 generators/templates/application/config.ru
rhosync-2.1.0 generators/templates/application/config.ru
rhosync-2.1.0.beta.2 generators/templates/application/config.ru
rhosync-2.1.0.beta.1 generators/templates/application/config.ru
rhosync-2.0.9 generators/templates/application/config.ru
rhosync-2.0.8 generators/templates/application/config.ru
rhosync-2.0.7 generators/templates/application/config.ru
rhosync-2.0.6 generators/templates/application/config.ru
rhosync-2.0.5 generators/templates/application/config.ru
rhosync-2.0.4 generators/templates/application/config.ru
rhosync-2.0.3 generators/templates/application/config.ru
rhosync-2.0.2 generators/templates/application/config.ru
rhosync-2.0.1 generators/templates/application/config.ru
rhosync-2.0.0 generators/templates/application/config.ru
rhosync-2.0.0.rc2 generators/templates/application/config.ru
rhosync-2.0.0.rc1 generators/templates/application/config.ru
rhosync-2.0.0.beta13 generators/templates/application/config.ru
rhosync-2.0.0.beta12 generators/templates/application/config.ru
rhosync-2.0.0.beta11 generators/templates/application/config.ru
rhosync-2.0.0.beta10 generators/templates/application/config.ru