OSDN Git Service

config script should be run before starting rails.
authorAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 09:47:49 +0000 (18:47 +0900)
committerAkihiro Ono <akihiro@ase.co.jp>
Fri, 27 Nov 2009 09:47:49 +0000 (18:47 +0900)
ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails

index 7b5f4fa..51264e4 100644 (file)
@@ -108,6 +108,11 @@ module Mongrel
             debug "/"
           end
 
+          if defaults[:config_script]
+            log "Loading #{defaults[:config_script]} external config script"
+            run_config(defaults[:config_script])
+          end
+
           log "Starting Rails with #{defaults[:environment]} environment..."
           log "Mounting Rails at #{defaults[:prefix]}..." if defaults[:prefix]
           uri defaults[:prefix] || "/", :handler => rails(:mime => mime, :prefix => defaults[:prefix])
@@ -116,11 +121,6 @@ module Mongrel
           log "Loading any Rails specific GemPlugins"
           load_plugins
 
-          if defaults[:config_script]
-            log "Loading #{defaults[:config_script]} external config script"
-            run_config(defaults[:config_script])
-          end
-
           setup_rails_signals
         end
       end