Makefile 366 B

12345678910111213141516171819202122
  1. start:
  2. nohup python3 infer.py > /dev/null 2>&1 &
  3. @sleep 1s
  4. @ps -ef | grep infer.py
  5. debug:
  6. python3 infer.py
  7. status:
  8. @ps -ef | grep infer.py
  9. log:
  10. @tail -f log/runtime.log
  11. help:
  12. @echo "make start => start server"
  13. @echo "make status => check server status"
  14. @echo "make log => print log"
  15. @echo "make help => help"
  16. .PHONY: start status help log