Sha256: 59682d877b80575656a021f43051885f937e7d11355e9648894bebb736b49c54
Contents?: true
Size: 1 KB
Versions: 20
Compression:
Stored size: 1 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 :secret, '<%= @secret %>' 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