#!/usr/bin/env ruby
require 'rubygems'
require 'integrity'

# If you want to add any notifiers, install the gems and then require them here
# For example, to enable the Email notifier: install the gem (from github: 
#
#   sudo gem install -s http://gems.github.com foca-integrity-email
# 
# And then uncomment the following line:
# 
# require "notifier/email"

# Load integrity's configuration.
Integrity.config = File.expand_path('./config.yml')

#######################################################################
##                                                                   ##
## == DON'T EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING == ##
##                                                                   ##
#######################################################################
require Integrity.root / 'app'

set     :public,  Integrity.root / 'public'
set     :views,   Integrity.root / 'views'
set     :port,    8910
set     :env,     :production
disable :run,     :reload

use Rack::CommonLogger, Integrity.logger if Integrity.config[:log_debug_info]
run Sinatra.application

#!/usr/bin/env ruby
require 'rubygems'
require 'integrity'

# If you want to add any notifiers, install the gems and then require them here
# For example, to enable the Email notifier: install the gem (from github: 
#
#   sudo gem install -s http://gems.github.com foca-integrity-email
# 
# And then uncomment the following line:
# 
# require "notifier/email"

# Load integrity's configuration.
Integrity.config = File.expand_path('./config.yml')

#######################################################################
##                                                                   ##
## == DON'T EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING == ##
##                                                                   ##
#######################################################################
require Integrity.root / 'app'

set     :public,  Integrity.root / 'public'
set     :views,   Integrity.root / 'views'
set     :port,    8910
set     :env,     :production
disable :run,     :reload

use Rack::CommonLogger, Integrity.logger if Integrity.config[:log_debug_info]
run Sinatra::Application

Switch to Sinatra::Application from deprecated Sinatra.application
Switch to Sinatra::Application from deprecated Sinatra.application

Signed-off-by: Simon Rozet <088e16a1019277b15d58faf0541e11910eb756f6@rozet.name>
