Sha256: 928081b181fd50ef26ab1c723196024aae67eb71417bd6653446f30add5b37c1
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 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 queue and worker pool $queue = RestFtpDaemon::JobQueue.new $pool = RestFtpDaemon::WorkerPool.new(Settings.workers || APP_WORKERS) # 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", "/images"], :root => "#{APP_LIBS}/static/" # Launch the main daemon run RestFtpDaemon::API::Root #run Rack::Cascade.new [RestFtpDaemon::API::Root]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.213.0 | config.ru |
rest-ftp-daemon-0.212.0 | config.ru |