Move init.lua code into 3 smaller files. Consolidate server configuration. (#94)
* Move server initialization out of init.lua and into new httpserver-init.lua * Use wildcard for finding server files to upload. * Break init.lua up into 3 files. Move all configuration to httpserver.conf. New files are: * httpserver-compile.lua * httpserver-wifi.lua * httpserver-init.lua
This commit is contained in:
19
Makefile
19
Makefile
@@ -1,8 +1,10 @@
|
||||
######################################################################
|
||||
# User configuration
|
||||
# Makefile user configuration
|
||||
######################################################################
|
||||
|
||||
# Path to nodemcu-uploader (https://github.com/kmpm/nodemcu-uploader)
|
||||
NODEMCU-UPLOADER=../nodemcu-uploader/nodemcu-uploader.py
|
||||
|
||||
# Serial port
|
||||
PORT=/dev/cu.SLAB_USBtoUART
|
||||
SPEED=115200
|
||||
@@ -10,20 +12,9 @@ SPEED=115200
|
||||
NODEMCU-COMMAND=$(NODEMCU-UPLOADER) -b $(SPEED) --start_baud $(SPEED) -p $(PORT) upload
|
||||
|
||||
######################################################################
|
||||
# End of user config
|
||||
######################################################################
|
||||
|
||||
HTTP_FILES := $(wildcard http/*)
|
||||
LUA_FILES := \
|
||||
init.lua \
|
||||
httpserver.lua \
|
||||
httpserver-b64decode.lua \
|
||||
httpserver-basicauth.lua \
|
||||
httpserver-conf.lua \
|
||||
httpserver-connection.lua \
|
||||
httpserver-error.lua \
|
||||
httpserver-header.lua \
|
||||
httpserver-request.lua \
|
||||
httpserver-static.lua \
|
||||
LUA_FILES := $(wildcard *.lua)
|
||||
|
||||
# Print usage
|
||||
usage:
|
||||
|
||||
Reference in New Issue
Block a user