Skip to content

Instantly share code, notes, and snippets.

@mbijon
Created September 5, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbijon/fe626b9726584daaafb3b3e4efaa0b80 to your computer and use it in GitHub Desktop.
Save mbijon/fe626b9726584daaafb3b3e4efaa0b80 to your computer and use it in GitHub Desktop.
Output load order of Rails boot/init/config files Add following code to bin/rails & run `rails s` w/ logging. Not 100% complete, but fills-in blanks in http://guides.rubyonrails.org/initialization.html --from: http://stackoverflow.com/q/8672803/982920
files = []
tp = TracePoint.new(:line) do |tp|
if tp.path =~ /bole_api/
unless files.include? tp.path
puts "#{tp.path}".inspect
files.push(tp.path)
end
end
end
tp.enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment