diff examples/blog/src/private/tools/backup.html.luan @ 1429:82415c9c0015

move versioning into Lucene
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 24 Nov 2019 23:07:21 -0700
parents 4721c482c86b
children
line wrap: on
line diff
--- a/examples/blog/src/private/tools/backup.html.luan	Sun Nov 24 21:02:38 2019 -0700
+++ b/examples/blog/src/private/tools/backup.html.luan	Sun Nov 24 23:07:21 2019 -0700
@@ -2,13 +2,13 @@
 local error = Luan.error
 local Io = require "luan:Io.luan"
 local Http = require "luan:http/Http.luan"
-local db = require("site:/lib/Db.luan").db or error()
+local Db = require "site:/lib/Db.luan"
 
 
 return function()
 	local backup = Io.uri "site:/private/local/backup.zip"
 	backup.delete()
-	db.zip(backup)
+	Db.zip(backup)
 
 	Io.stdout = Http.response.text_writer()
 %>