annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
693
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 494
diff changeset
1 local Io = require "luan:Io.luan"
ca169567ce07 module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents: 494
diff changeset
2 local Server = require "luan:http/Server.luan"
347
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 if #{...} ~= 1 then
1172
1aa6dd74f3fc add serve_for_nginx
Franklin Schmidt <fschmidt@gmail.com>
parents: 775
diff changeset
5 Io.stderr.write "usage: luan luan:http/serve_for_nginx dir\n"
347
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 return
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 end
612a283b3d14 improve luan/web file names and add serve.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
1178
49cf706c326a serve_for_nginx on port 8081
Franklin Schmidt <fschmidt@gmail.com>
parents: 1172
diff changeset
9 Server.port = 8081
1172
1aa6dd74f3fc add serve_for_nginx
Franklin Schmidt <fschmidt@gmail.com>
parents: 775
diff changeset
10 Server.serve_for_nginx(...)