mirror of
https://github.com/ION606/static-site-hosting.git
synced 2026-05-14 22:16:54 +00:00
20 lines
291 B
Makefile
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
|