You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
317 B
25 lines
317 B
|
|
# Makefile for managing local Nginx instance
|
|
|
|
# Current directory
|
|
PWD := $(shell pwd)
|
|
|
|
.PHONY: start stop reload clean
|
|
|
|
logs:
|
|
mkdir -p logs
|
|
|
|
start: logs
|
|
nginx -p $(PWD) -c nginx.conf
|
|
|
|
stop:
|
|
nginx -p $(PWD) -s stop
|
|
|
|
reload:
|
|
nginx -p $(PWD) -s reload
|
|
|
|
check:
|
|
nginx -p $(PWD) -c nginx.conf -t
|
|
|
|
clean:
|
|
rm -rf logs
|