Mercurial Hosting > luan
comparison src/luan/modules/http/serve.luan @ 1201:7f4a12fb7716
remove logging/init.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Mar 2018 17:07:48 -0700 |
parents | 1aa6dd74f3fc |
children | 7fc83fd2a39a |
comparison
equal
deleted
inserted
replaced
1200:1e351b0d385e | 1201:7f4a12fb7716 |
---|---|
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 local Logging = require "luan:logging/Logging.luan" | |
4 | |
3 | 5 |
4 if #{...} ~= 1 then | 6 if #{...} ~= 1 then |
5 Io.stderr.write "usage: luan luan:http/serve dir\n" | 7 Io.stderr.write "usage: luan luan:http/serve dir\n" |
6 return | 8 return |
7 end | 9 end |
8 | 10 |
11 Logging.init() | |
9 Server.serve(...) | 12 Server.serve(...) |