view src/luan/modules/http/serve_for_nginx.luan @ 1178:49cf706c326a

serve_for_nginx on port 8081
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Feb 2018 22:44:06 -0700
parents 1aa6dd74f3fc
children
line wrap: on
line source

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.port = 8081
Server.serve_for_nginx(...)