From bcc9d749ad1021b0e18a5919dddb0df3aceb2e4c Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 20 Nov 2013 12:35:33 +1100 Subject: [PATCH] load up routes in master --- config/unicorn.conf.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index 7f9c4fb9923..31c67713b4f 100644 --- a/config/unicorn.conf.rb +++ b/config/unicorn.conf.rb @@ -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