12345678910111213141516171819202122232425262728293031323334 |
- start:
- nohup python3 main.py > /dev/null 2>&1 &
- @sleep 1s
- @ps -ef | grep main.py | grep -v grep || true
- debug:
- @python3 main.py
- status:
- @ps -ef | grep main.py | grep -v grep || true
- stop:
- @ps -ef | grep main.py | grep -v grep | awk '{print $$2}' | xargs kill || true
- @ps -ef | grep main.py | grep -v grep || true
- log:
- @tail -f log/runtime.log
- make test:
- @python3 test.py
- help:
- @echo "Usage: make <target>"
- @echo ""
- @echo "make start Start server"
- @echo "make status Check server status"
- @echo "make debug Execute python3 main.py"
- @echo "make stop Kill server"
- @echo "make test Test local image"
- @echo "make log Print log"
- @echo "make help Show this help message"
- @echo ""
- .PHONY: start status debug stop test help log
|