Mercurial Hosting > luan
comparison src/luan/modules/http/serve.luan @ 1172:1aa6dd74f3fc
add serve_for_nginx
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 03:19:45 -0700 |
parents | 1a68fc55a80c |
children | 7f4a12fb7716 |
comparison
equal
deleted
inserted
replaced
1171:794ddcfbee20 | 1172:1aa6dd74f3fc |
---|---|
1 local Io = require "luan:Io.luan" | 1 local Io = require "luan:Io.luan" |
2 local Server = require "luan:http/Server.luan" | 2 local Server = require "luan:http/Server.luan" |
3 | 3 |
4 if #{...} ~= 1 then | 4 if #{...} ~= 1 then |
5 Io.stderr.write "usage: luan luan:http/serve dir-URI\n" | 5 Io.stderr.write "usage: luan luan:http/serve dir\n" |
6 return | 6 return |
7 end | 7 end |
8 | 8 |
9 Server.serve(...) | 9 Server.serve(...) |