mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 04:13:44 +08:00
12 lines
299 B
Ruby
12 lines
299 B
Ruby
if ENV['DISCOURSE_DUMP_HEAP'] == "1"
|
|
require 'objspace'
|
|
ObjectSpace.trace_object_allocations_start
|
|
end
|
|
|
|
require 'rubygems'
|
|
|
|
# Set up gems listed in the Gemfile.
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
|
|
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|