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