Commits

benny daon  committed a2ce1d1 Draft

fxing config

  • Participants
  • Parent commits 6dcfff8

Comments (0)

Files changed (1)

File config/default.lua

 -- collectgarbage("stop")
 
 -- open and set default database handle
-db = assert(mondelefant.connect{
-  engine='postgresql',
-  dbname='liquid_feedback_p'
-})
-at_exit(function() 
-  db:close()
-end)
+if not db then
+	db = assert(mondelefant.connect{
+	  engine='postgresql',
+	  dbname='liquid_feedback_p'
+	})
+	at_exit(function() 
+	  db:close()
+	end)
+end
 function mondelefant.class_prototype:get_db_conn() return db end
 
 -- enable output of SQL commands in trace system