lib/bivouac/template/application/postamble_fastcgi.rb in bivouac-0.0.2 vs lib/bivouac/template/application/postamble_fastcgi.rb in bivouac-0.0.3
- 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/#{conf.appname.tableize}.db"'
- <%= @appname %>::Models::Base.logger = Logger.new(File.dirname(__FILE__) + "/../../log/camping.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