Sha256: 8aa28f5194b98c9a24e91e79f302a0c05c53e34ca6753486c296c98ecb21551b
Contents?: true
Size: 893 Bytes
Versions: 7
Compression:
Stored size: 893 Bytes
Contents
# Load gem files load_path_libs = File.expand_path(File.join(File.dirname(__FILE__), "lib")) $LOAD_PATH.unshift(load_path_libs) unless $LOAD_PATH.include?(load_path_libs) require "rest-ftp-daemon" # Create global queue $queue = RestFtpDaemon::JobQueue.new # Initialize workers and conchita subsystem $pool = RestFtpDaemon::WorkerPool.new # Rack reloader unless Settings.namespace == "production" use Rack::Reloader, 0 end # Rack authent unless Settings.adminpwd.nil? use Rack::Auth::Basic, "Restricted Area" do |username, password| [username, password] == ["admin", Settings.adminpwd] end end # NewRelic profiling GC::Profiler.enable if Settings.newrelic_enabled? # Serve static assets use Rack::Static, :urls => ["/css", "/js", "/images"], :root => "#{APP_LIBS}/static/" # Launch the main daemon run RestFtpDaemon::API::Root #run Rack::Cascade.new [RestFtpDaemon::API::Root]
Version data entries
7 entries across 7 versions & 1 rubygems