Mercurial Hosting > luan
diff examples/blog/serve_and_backup.luan @ 1710:fc224a1bb6ea
add blog/serve_and_backup.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 10 Jul 2022 17:52:19 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/blog/serve_and_backup.luan Sun Jul 10 17:52:19 2022 -0600 @@ -0,0 +1,6 @@ +require "java" +local BackupIndexWriter = require "java:goodjava.lucene.backup.BackupIndexWriter" +BackupIndexWriter.backupDomains = {"localhost"} + +local Server = require "luan:http/Server.luan" +Server.serve("src")