Mercurial Hosting > luan
annotate examples/blog/serve_and_backup.luan @ 1727:63ab02188e9d
change priority
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Thu, 11 Aug 2022 13:11:53 +0200 |
parents | fc224a1bb6ea |
children |
rev | line source |
---|---|
1710
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
1 require "java" |
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
2 local BackupIndexWriter = require "java:goodjava.lucene.backup.BackupIndexWriter" |
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
3 BackupIndexWriter.backupDomains = {"localhost"} |
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
4 |
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
5 local Server = require "luan:http/Server.luan" |
fc224a1bb6ea
add blog/serve_and_backup.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
6 Server.serve("src") |