Sha256: 8dc3d407e28b600a12922a298ae895bb2494ece4521fb6786dc52f3be4ab4540

Contents?: true

Size: 462 Bytes

Versions: 25

Compression:

Stored size: 462 Bytes

Contents

require 'bundler'

env = ENV['RACK_ENV'] || :development
Bundler.require :default, env

begin
  log = open(File.expand_path("../log/#{env}.log", __FILE__), 'a+').tap {|f| f.sync = true }
rescue
  # Heroku doesn't allow local file access
  log = $stdout
end

use Rack::CommonLogger, log

map '/' do
  run proc { [302, {'Location' => '/stanza'}, []] }
end

map '/stanza/assets' do
  run TogoStanza.sprockets
end

map '/stanza' do
  run TogoStanza::Application
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
togostanza-2.2.2 templates/provider/config.ru.erb
togostanza-2.2.1 templates/provider/config.ru.erb
togostanza-2.2.0 templates/provider/config.ru.erb
togostanza-2.1.3 templates/provider/config.ru.erb
togostanza-2.1.2 templates/provider/config.ru.erb
togostanza-2.1.1 templates/provider/config.ru.erb
togostanza-2.1.0 templates/provider/config.ru.erb
togostanza-2.0.0 templates/provider/config.ru.erb
togostanza-1.5.0 templates/provider/config.ru.erb
togostanza-1.4.1 templates/provider/config.ru.erb
togostanza-1.4.0 templates/provider/config.ru.erb
togostanza-1.3.3 templates/provider/config.ru.erb
togostanza-1.3.2 templates/provider/config.ru.erb
togostanza-1.3.1 templates/provider/config.ru.erb
togostanza-1.3.0 templates/provider/config.ru.erb
togostanza-1.2.2 templates/provider/config.ru.erb
togostanza-1.2.1 templates/provider/config.ru.erb
togostanza-1.2.0 templates/provider/config.ru.erb
togostanza-1.1.0 templates/provider/config.ru.erb
togostanza-1.0.6 templates/provider/config.ru.erb