<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,22 +2,21 @@
                                                                
 require 'rubygems'
 require 'merb-core'
-                   
+
+# this is Merb.root, change this if you have some funky setup.
+merb_root = File.expand_path(File.dirname(__FILE__) / '../')
+        
 # If the fcgi process runs as apache, make sure
-# we have an inlinedir set
+# we have an inlinedir set for Rubyinline action-args to work
 unless ENV[&quot;INLINEDIR&quot;] || ENV[&quot;HOME&quot;]
-  tmpdir = File.dirname(__FILE__) + &quot;/../tmp&quot;
+  tmpdir = merb_root / &quot;tmp&quot;
   unless File.directory?(tmpdir)
     Dir.mkdir(tmpdir)
   end                
-  
   ENV[&quot;INLINEDIR&quot;] = tmpdir
-  
 end
-                              
-# the merb root should alwasy be located below
-# to set the root dir
-argv = ARGV + %w[-a fcgi -m ..]               
-                     
-# start
-Merb.start(argv)
\ No newline at end of file
+   
+# start merb with the fcgi adapter, add options or change the log dir here
+Merb.start(:adapter =&gt; 'fcgi',
+           :merb_root =&gt; merb_root,
+           :log_file =&gt; merb_root /'log'/'merb.log')
\ No newline at end of file</diff>
      <filename>merb-gen/app_generators/merb/templates/public/merb.fcgi</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3a13dac3bfdb4e37d20095e254f36437fcf0cc84</id>
    </parent>
  </parents>
  <author>
    <name>Ezra Zygmuntowicz</name>
    <email>ez@engineyard.com</email>
  </author>
  <url>http://github.com/wycats/merb-more/commit/b5467e5138b8c18c0c521a5fce5ea529f1a090d6</url>
  <id>b5467e5138b8c18c0c521a5fce5ea529f1a090d6</id>
  <committed-date>2008-03-24T16:17:33-07:00</committed-date>
  <authored-date>2008-03-24T16:17:33-07:00</authored-date>
  <message>fix up merb-fcgi binary to work out of the box</message>
  <tree>b201cfab820b88a522c79ded9239eba53625ee28</tree>
  <committer>
    <name>Ezra Zygmuntowicz</name>
    <email>ez@engineyard.com</email>
  </committer>
</commit>
