comparison 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
comparison
equal deleted inserted replaced
1171:794ddcfbee20 1172:1aa6dd74f3fc
1 local Io = require "luan:Io.luan"
2 local Server = require "luan:http/Server.luan"
3
4 if #{...} ~= 1 then
5 Io.stderr.write "usage: luan luan:http/serve_for_nginx dir\n"
6 return
7 end
8
9 Server.serve_for_nginx(...)