Files
static-site-hosting/Makefile
T
2025-02-16 16:47:49 -05:00

20 lines
291 B
Makefile

all: run
run:
nohup python app.py > output.log 2>&1 & echo $$! > app.pid
stop:
@if [ -s app.pid ]; then \
kill -9 $$(cat app.pid) && rm -f app.pid; \
else \
echo "No running process found."; \
fi
restart: stop run
logs:
tail -f output.log
clean: stop
rm -f output.log app.pid