apisix/Makefile
2019-05-13 14:31:26 +08:00

33 lines
527 B
Makefile

### help: Show Makefile rules.
.PHONY: help
help:
@echo Makefile rules:
@echo
@grep -E '^### [-A-Za-z0-9_]+:' Makefile | sed 's/###/ /'
### run: Start the apisix server
.PHONY: run
run:
mkdir -p logs
sudo $$(which openresty) -p $$PWD/
### stop: Stop the apisix server
.PHONY: stop
stop:
sudo $$(which openresty) -p $$PWD/ -s stop
### clean: Remove generated files
.PHONY: clean
clean:
rm -rf logs/
### reload: Reload the apisix server
.PHONY: reload
reload:
sudo $$(which openresty) -p $$PWD/ -s reload