-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
66 lines (42 loc) · 1.62 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
******************************************************************
08/12/2015
Daniel Rampel has forked Ladle and is adding support
for POST requests, Lua scripting (Lua pages/scripts), etc.
Please see:
https://github.com/danielrempel/ladle
I would strongly recommend that you use his fork
rather than the original project listed here.
******************************************************************
13/03/2015
Ladle (lua-web-server) was originally a project on Google Code,
the original code has been ported as-is to Github because
Google Code is being shut down.
******************************************************************
--------------------------------
Ladle web server
--------------------------------
Prerequisites:
* Lua interpreter
* LuaSocket
* CGILua
* XML4Lua
=============================================================
To start the Ladle web server:
1) Open up a shell prompt
2) Navigate to directory containing ladle.lua
3) Run "webs" script
Make sure that the Lua intepreter is in your PATH
or you will have to type the full path to the Lua interpeter
e.g. /path/to/lua ladle.lua
The server runs by default on port 80 and can be accessed in
a web browser with http://localhost
Files served by the server should be placed in /www
=============================================================
To stop the Ladle web server:
1) Open up a shell prompt
2) Navigate to directory containing ladle.lua
3) Run "telin" script followed by port number
-> E.g. "telin 80" or "./telin.sh 80"
if you ran the server on port 80
4) Type "kill" and hit return
=============================================================