public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Add --fast-deploy option
wycats (author)
Sat Sep 27 22:24:39 -0700 2008
commit  4405ac5db172a40d533b71a0a57a3233aea13435
tree    55278af25b5cb51e26f3e5131585788af1b85a94
parent  247779ebe96100b49690581801a897636e72b36a
...
110
111
112
 
 
113
114
115
...
110
111
112
113
114
115
116
117
0
@@ -110,6 +110,8 @@ module Merb
0
         Merb::Server.kill(Merb::Config[:port], 2)
0
       when :kill_9
0
         Merb::Server.kill(Merb::Config[:port], 9)
0
+      when :fast_deploy
0
+        Merb::Server.kill("main", "HUP")
0
       else
0
         Merb::Server.start(Merb::Config[:port], Merb::Config[:cluster])
0
       end
...
271
272
273
 
 
 
 
 
274
275
276
...
271
272
273
274
275
276
277
278
279
280
281
0
@@ -271,6 +271,11 @@ module Merb
0
             port = "main" if port == "all"
0
             options[:port] = port
0
           end
0
+          
0
+          opts.on("--fast-deploy", "Reload the code, but not your" \
0
+            "init.rb or gems") do
0
+              options[:action] = :fast_deploy
0
+          end
0
 
0
           # @todo Do we really need this flag? It seems unlikely to want to
0
           #   change the mutex from the command-line.

Comments