# FastCGI postamble if __FILE__ == $0 require 'camping/fastcgi' <%= @appname %>::Models::Base.establish_connection :adapter => 'sqlite3', :database => File.dirname(__FILE__) + "/../db/<%= @appname %>.db" <%= @appname %>::Models::Base.logger = Logger.new(File.dirname(__FILE__) + "/../log/<%= @appname %>.log") <%= @appname %>.create if <%= @appname %>.respond_to? :create Camping::FastCGI.start(<%= @appname %>) end