Sha256: c9b06162592006603286a67bd849a55863d79dcb453283a34157c9c51cdc6612

Contents?: true

Size: 722 Bytes

Versions: 3

Compression:

Stored size: 722 Bytes

Contents

require './lib/gitdocs'
require './lib/gitdocs/manager'
require './lib/gitdocs/settings_app'
require './lib/gitdocs/browser_app'
require './lib/gitdocs/repository'
require './lib/gitdocs/configuration'

# rubocop:disable AlignParameters
use Rack::Static,
  urls: %w(/css /js /img /doc),
  root: './lib/gitdocs/public'
use Rack::MethodOverride

Gitdocs::Initializer.root_dirname = './tmp/web'
Gitdocs::Initializer.initialize_database

Gitdocs::SettingsApp.set :logging, true
map('/settings') { run Gitdocs::SettingsApp }

repositories = Gitdocs::Share.all.map { |x| Gitdocs::Repository.new(x) }
Gitdocs::BrowserApp.set :repositories, repositories
Gitdocs::BrowserApp.set :logging, true
map('/') { run Gitdocs::BrowserApp }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitdocs-0.6.2 config.ru
gitdocs-0.6.1 config.ru
gitdocs-0.6.0 config.ru