Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 564 Bytes
#-----------------------------------------------------------------------
# Example rackup file for an entire stickler stack with authorization
#
# -*- vim: set ft=ruby: -*-
#-----------------------------------------------------------------------
$:.unshift File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
require 'stickler'
tmp = File.expand_path( File.join( File.dirname( __FILE__ ), "..", "spec", "data" ) )
use Rack::Auth::Basic, 'Secure Stickler' do |u,p|
(u == "stickler") and (p == "secret")
end
run Stickler::Server.new( tmp ).app
Jump to Line
Something went wrong with that request. Please try again.