Sha256: edfa5a86d345b12e97b2750f387ff371e64305ccccba0e2595d0bdaa26211bd8

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

RACK_ENV = ENV["RACK_ENV"] ||= "development" unless defined? RACK_ENV
ROOT_DIR = $0.gsub(%r{^.*?/}, '/') unless defined? ROOT_DIR

require File.dirname(__FILE__) + '/app.rb'

FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
$stdout.reopen(log)
$stderr.reopen(log)

ENV['DATABASE_URL'] = 'your_database_here'

run <%= @class_name %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra_more-0.3.1 generators/base_app/config.ru.tt
sinatra_more-0.3.0 generators/base_app/config.ru.tt