resty-test
Repo to quickly run some Lua test code with OpenResty.
usage
Edit resty-test.lua
to add some code to run.
Then run
make start; make test
or
make reload; make test
The test server will run on localhost:8080
.
Meanwhile check the logs in another terminal with
make tail
Commands
All commands are invoked using the Makefile
:
-
make start
/stop
/quit
/reload
will do as expected -
make test
will issue a GET request onhttp://localhost:8080/
-
make tail
will start a tail on the access and error log files -
make show
will show the current nginx processes running -
make clean
will stop and clean the working directory/prefix
Checkout the Makefile
for details.