Mercurial Hosting > luan
diff src/luan/modules/http/serve_for_nginx.luan @ 1172:1aa6dd74f3fc
add serve_for_nginx
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 03:19:45 -0700 |
parents | src/luan/modules/http/serve.luan@1a68fc55a80c |
children | 49cf706c326a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/luan/modules/http/serve_for_nginx.luan Sun Feb 11 03:19:45 2018 -0700 @@ -0,0 +1,9 @@ +local Io = require "luan:Io.luan" +local Server = require "luan:http/Server.luan" + +if #{...} ~= 1 then + Io.stderr.write "usage: luan luan:http/serve_for_nginx dir\n" + return +end + +Server.serve_for_nginx(...)