Sha256: 609cf060622b8427bc1b1a919fc1f44e56d1ca900044c8afbb0312b2e0f0bffd

Contents?: true

Size: 596 Bytes

Versions: 8

Compression:

Stored size: 596 Bytes

Contents

# -*- ruby -*-

a = File.dirname(File.expand_path(__FILE__))
$LOAD_PATH.unshift(File.join(a, 'lib'))
require 'bitclust/app'

app = BitClust::App.new(
  :baseurl => 'http://localhost:9292',
  :dbpath => Dir.glob('db-*'),
  :datadir => File.join(a, 'data', 'bitclust'),
  :encoding => 'utf-8',
  :viewpath => '/view',
  :rack => true
)

use Rack::ShowExceptions
# use Rack::ShowStatus
use Rack::Lint
use Rack::CommonLogger
use Rack::Static, :urls => ['/theme'], :root => '.'

map "/" do
  run app
end

app.interfaces.each do |viewpath, interface|
  map '/'+viewpath do
    run interface
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
bitclust-core-0.5.3 config.ru.sample
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.ru.sample
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.ru.sample
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/config.ru.sample
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/config.ru.sample
bitclust-core-0.5.2 config.ru.sample
bitclust-core-0.5.1 config.ru.sample
bitclust-core-0.5.0 config.ru.sample