2014-07-14 16:19:19 +02:00
|
|
|
# encoding: utf-8
|
|
|
|
|
2014-07-31 18:43:34 +02:00
|
|
|
require 'bundler'
|
|
|
|
|
|
|
|
require_relative './config/options'
|
2014-07-14 16:19:19 +02:00
|
|
|
require_relative './app'
|
|
|
|
|
|
|
|
configure :development do
|
|
|
|
Sinatra::Application.reset!
|
|
|
|
use Rack::Reloader
|
|
|
|
end
|
2014-07-27 22:09:23 +02:00
|
|
|
|
2014-07-14 19:41:37 +02:00
|
|
|
use Rack::Rewrite do
|
2014-07-14 23:49:28 +02:00
|
|
|
rewrite %r{^/(.*(css|js|ttf|woff|html|png|jpg|jpeg|gif)$)}, '/app/$1'
|
2014-07-14 19:41:37 +02:00
|
|
|
end
|
|
|
|
|
2014-07-14 16:19:19 +02:00
|
|
|
run LedgerRbApp
|