Mercurial Hosting > luan
changeset 282:38bd29e59a6e
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@283 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 26 Nov 2014 22:25:09 +0000 |
parents | a1fa4fba99de |
children | b669cdaf54b7 |
files | core/src/luan/modules/Hosting.luan web/src/luan/modules/web/Web_server.luan |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r a1fa4fba99de -r 38bd29e59a6e core/src/luan/modules/Hosting.luan --- a/core/src/luan/modules/Hosting.luan Wed Nov 26 04:14:52 2014 +0000 +++ b/core/src/luan/modules/Hosting.luan Wed Nov 26 22:25:09 2014 +0000 @@ -3,9 +3,9 @@ import "luan:Io" port = 9101 -socket = "socket:localhost:" .. port function put_site(domain,password,dir) + local socket = "socket:" .. domain .. ":" .. port local pc = Io.Uri(socket).Pickle_client() local pickle = pc.pickle pc.call(%> @@ -16,6 +16,7 @@ end function delete_site(domain,password) + local socket = "socket:" .. domain .. ":" .. port local pc = Io.Uri(socket).Pickle_client() local pickle = pc.pickle pc.call(%>
diff -r a1fa4fba99de -r 38bd29e59a6e web/src/luan/modules/web/Web_server.luan --- a/web/src/luan/modules/web/Web_server.luan Wed Nov 26 04:14:52 2014 +0000 +++ b/web/src/luan/modules/web/Web_server.luan Wed Nov 26 22:25:09 2014 +0000 @@ -3,6 +3,7 @@ import "luan:Io" import "luan:Package" import "luan:web/Http" +import "luan:logging/Logging" -- initialize logging import "java:org.eclipse.jetty.server.Server" import "java:org.eclipse.jetty.server.NCSARequestLog"