[Jifty-commit] r7612 - jifty/trunk/lib

Jifty commits jifty-commit at lists.jifty.org
Fri Nov 13 23:06:53 EST 2009


Author: alexmv
Date: Fri Nov 13 23:06:51 2009
New Revision: 7612

Modified:
   jifty/trunk/lib/Jifty.pm

Log:
Don't do app initialization if we're running with no handle (i.e., `jifty schema`)

Modified: jifty/trunk/lib/Jifty.pm
==============================================================================
--- jifty/trunk/lib/Jifty.pm	(original)
+++ jifty/trunk/lib/Jifty.pm	Fri Nov 13 23:06:51 2009
@@ -250,8 +250,8 @@
     my $app = Jifty->app_class;
     
     # Run the App::start() method if it exists for app-specific initialization
-    $app->start()
-        if $app->can('start');
+    $app->start
+        if not $args{no_handle} and $app->can('start');
 
     # For plugins that want all the above initialization, but want to run before
     # we begin serving requests


More information about the Jifty-commit mailing list