Files
static-site-hosting/Makefile.old
T
2025-02-17 14:49:44 -05:00

23 lines
345 B
Makefile

all: run
run:
nohup .venv/bin/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
reset: clean
rm -rf instance
rm -rf sites