started Quick-E-Mart example.
[merb_mart.git] / examples / quick-E-mart / public / merb.fcgi
blob9804e0f36da96857718c2edf79bed0e11204c606
1 #!/usr/bin/env ruby
3 require 'rubygems'
4 require 'merb-core'
6 # this is Merb.root, change this if you have some funky setup.
7 merb_root = File.expand_path(File.dirname(__FILE__) / '../')
9 # If the fcgi process runs as apache, make sure
10 # we have an inlinedir set for Rubyinline action-args to work
11 unless ENV["INLINEDIR"] || ENV["HOME"]
12 tmpdir = merb_root / "tmp"
13 unless File.directory?(tmpdir)
14 Dir.mkdir(tmpdir)
15 end
16 ENV["INLINEDIR"] = tmpdir
17 end
19 # start merb with the fcgi adapter, add options or change the log dir here
20 Merb.start(:adapter => 'fcgi',
21 :merb_root => merb_root,
22 :log_file => merb_root /'log'/'merb.log')