load up routes in master

This commit is contained in:
Sam 2013-11-20 12:35:33 +11:00
parent 724f81258c
commit bcc9d749ad
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ before_fork do |server, worker|
table.classify.constantize.first rescue nil
end
# router warm up
Rails.application.routes.recognize_path('abc') rescue nil
# get rid of rubbish so we don't share it
GC.start