Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tieske/resty-test
A setup to quickly test OpenResty Lua code
https://github.com/Tieske/resty-test
Last synced: 28 days ago
JSON representation
A setup to quickly test OpenResty Lua code
- Host: GitHub
- URL: https://github.com/Tieske/resty-test
- Owner: Tieske
- License: mit
- Created: 2021-01-22T11:23:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T10:08:06.000Z (8 months ago)
- Last Synced: 2024-11-22T13:44:23.109Z (about 1 month ago)
- Language: Makefile
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resty-test
Repo to quickly run some Lua test code with OpenResty.
## usage
Edit [`resty-test.lua`](resty-test.lua) to add some code to run.
Then run
```shell
make start; make test
```
or
```shell
make reload; make test
```The test server will run on `localhost:8080`.
Meanwhile check the logs in another terminal with
```shell
make tail
```## Commands
All commands are invoked using the [`Makefile`](Makefile):
- `make help` will list available targets (this is the default target)
- `make start`/`stop`/`quit`/`reload` will do as expected
- `make test` will issue a GET request on `http://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`](Makefile) for details.