annotate README @ 8:32e0838d16e6
Added MOONBR_LUA_PATH compile-time variable to allow prepending a path to LUA_PATH at run-time
author |
jbe |
date |
Thu Jan 29 03:22:06 2015 +0100 (2015-01-29) |
parents |
f6d3b3f70dab |
children |
757902555204 |
rev |
line source |
jbe@0
|
1 Quickstart guide:
|
jbe@0
|
2
|
jbe@8
|
3 $ make
|
jbe@0
|
4 $ ./moonbridge example_application.lua
|
jbe@0
|
5
|
jbe@8
|
6 Hint: use bmake on GNU systems
|
jbe@8
|
7
|
jbe@0
|
8 Then connect to http://localhost:8080/
|
jbe@0
|
9
|
jbe@0
|
10 To learn more, check example_application.lua and reference.txt files. If you
|
jbe@0
|
11 experence any touble during compilation, please edit the Makefile to match
|
jbe@0
|
12 your system.
|
jbe@0
|
13
|
jbe@8
|
14
|
jbe@8
|
15 Further notes:
|
jbe@8
|
16
|
jbe@8
|
17 The moonbridge binary may be compiled with a string that gets prepended to
|
jbe@8
|
18 LUA_PATH in order to allow proper inclusion of "moonbridge_http.lua"
|
jbe@8
|
19 independent of the current working directory. Set the MOONBR_LUA_PATH variable
|
jbe@8
|
20 to a string consisting of the path where "moonbridge_http.lua" will be
|
jbe@8
|
21 installed plus "/?.lua" if you want to use this feature, e.g.:
|
jbe@8
|
22
|
jbe@8
|
23 $ make MOONBR_LUA_PATH=/usr/local/lib/moonbridge/?.lua
|
jbe@8
|
24
|