Skip to content

Commit

Permalink
[Config.ru] Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed May 23, 2014
1 parent e05052e commit f263799
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions config.ru
@@ -1,22 +1,5 @@
require File.expand_path '../app', __FILE__
require 'logger'

# Development configurations
#
configure :development do
STDOUT.sync = true
end

# Production configuration
#
configure :production do

log_path = APP_ROOT + 'log/sinatra.log'
FileUtils.mkdir_p(log_path.dirname)
log = File.new(log_path, "a")
STDOUT.reopen(log)
STDERR.reopen(log)
end
$stdout.sync = true
require './app'

CocoaPodsNotifier::CocoaPodsNotifierApp.init
run CocoaPodsNotifier::CocoaPodsNotifierApp

0 comments on commit f263799

Please sign in to comment.