Sha256: d22303ce8de02b8459a0ef4096fec3750dd0b645d74023f0fae43e435b818fbb
Contents?: true
Size: 914 Bytes
Versions: 6
Compression:
Stored size: 914 Bytes
Contents
#!/usr/bin/env ruby begin # Load the bundler environment from #{Merb.root}/gems/environment.rb require File.join(File.dirname(__FILE__), "..", "gems", "environment") rescue LoadError # Default to using system rubygems if there's no bundle detected require "rubygems" end 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 for Rubyinline action-args to work unless ENV["INLINEDIR"] || ENV["HOME"] tmpdir = merb_root / "tmp" unless File.directory?(tmpdir) Dir.mkdir(tmpdir) end ENV["INLINEDIR"] = tmpdir end # start merb with the fcgi adapter, add options or change the log dir here Merb.start(:adapter => 'fcgi', :merb_root => merb_root, :log_file => merb_root / 'log' / 'merb.log')
Version data entries
6 entries across 6 versions & 1 rubygems