Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 488 Bytes
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
#
# to run against the production cluster, fire up an ssh port forward
# ssh -L 9202:localhost:9202 hastur-core1.us-east-1.ooyala.com
#
require "grape"
require "cassandra/1.0"
require "hastur-server/api/v1"
# danger! disable XSS protection
#require 'rack/protection'
#use Rack::Protection #, :except => [:http_origin, :xss_header]
ENV['CASSANDRA_URIS'] = '["127.0.0.1:9202"]'
run Rack::URLMap.new("/" => Hastur::API::V1.new)