lib/bivouac/template/application/postamble_fastcgi.rb in bivouac-0.0.3 vs lib/bivouac/template/application/postamble_fastcgi.rb in bivouac-0.0.4

- old
+ new

@@ -1,8 +1,8 @@ # 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 %>::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 \ No newline at end of file