Sha256: 8c60ab1640a1ba8cfc090b8f0cb3ab7b64eff99b30da5c05deffbf6f57ac6572
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
require 'carte/server' require 'rack/gzip_static' require 'json' $config = JSON.parse(File.read('config.json')) class Carte::Server configure do Mongoid.load! './mongoid.yml' set :carte, $config end end map('/') do use Rack::GzipStatic, urls: [""], root: $config['root_dir'], index: $config['html_path'] run lambda {} end map('/api') do run Carte::Server.new end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
carte-server-1.0.11 | config.ru |
carte-server-1.0.10 | config.ru |