Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 769 Bytes
require 'sinatra'
require 'iron_worker_ng'
require 'iron_mq'
require 'iron_cache'
require 'yaml'
require 'uuid'
require 'rack-flash'
# bump.
enable :sessions, :logging, :dump_errors, :raise_errors, :show_exceptions
use Rack::Flash
set :public_folder, File.expand_path(File.dirname(__FILE__) + '/assets')
$: << '.'
require 'config'
ironmq = IronMQ::Client.new(SingletonConfig.config[:iron])
#ironmq.logger.level = Logger::DEBUG
ironcache = IronCache::Client.new(SingletonConfig.config[:iron])
ironworker = IronWorkerNG::Client.new(SingletonConfig.config[:iron])
set :ironmq, ironmq
set :ironcache, ironcache
set :ironworker, ironworker
ocm = Ocm::Orm.new(ironcache.cache("ironforce"))
set :ocm, ocm
require_relative 'models/contact'
require_relative 'app_leads'