2016-06-18 01:59:58 +00:00
|
|
|
if defined? FasterPath
|
|
|
|
|
puts "OMG"
|
|
|
|
|
require "faster_path/optional/monkeypatches"
|
|
|
|
|
FasterPath.sledgehammer_everything!
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
2012-08-31 02:09:02 +00:00
|
|
|
# Load the rails application
|
|
|
|
|
require File.expand_path('../application', __FILE__)
|
|
|
|
|
|
2013-12-17 19:44:21 +00:00
|
|
|
Mime::Type.register "audio/ogg", :audio_ogg
|
|
|
|
|
|
2015-01-01 02:39:22 +00:00
|
|
|
# to prevent embedded resque code from forking
|
|
|
|
|
ENV['FORK_PER_JOB'] = 'false'
|
|
|
|
|
|
2014-12-30 23:10:16 +00:00
|
|
|
# assign globals
|
2013-12-17 19:44:21 +00:00
|
|
|
APP_CONFIG = Rails.application.config
|
2014-12-30 23:10:16 +00:00
|
|
|
Stats.client = InfluxDB::Rails.client
|
2013-12-17 19:44:21 +00:00
|
|
|
|
2015-01-01 02:39:22 +00:00
|
|
|
|
2012-08-31 02:09:02 +00:00
|
|
|
# Initialize the rails application
|
2012-08-31 03:01:52 +00:00
|
|
|
SampleApp::Application.initialize!
|
2014-12-30 23:10:16 +00:00
|
|
|
|