Mercurial Hosting > luan
diff src/luan/modules/http/Server.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 | 79b1e9ffd0c0 |
children | 2eba58842bbb |
line wrap: on
line diff
--- a/src/luan/modules/http/Server.luan Mon Feb 12 19:30:27 2018 -0700 +++ b/src/luan/modules/http/Server.luan Tue Feb 13 22:44:06 2018 -0700 @@ -60,7 +60,9 @@ System.exit(-1) end } +end +function Server.start_rpc() function Rpc.functions.call(domain,fn_name,...) return Server.luan_handler.call_rpc(fn_name,...) end @@ -81,6 +83,7 @@ handler = LogHandler.new(handler) Server.server = JavaServer.new(Server.port,handler) start() + Server.start_rpc() end function Server.serve_for_nginx(dir)