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