README-usage.bash 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ## USAGE
  2. sudo docker logs -f sri-dino-pyserver01 # 查看日志
  3. echo "操作:停服更新" \
  4. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  5. && cd ${project_path} \
  6. && sudo docker-compose --file compose.yml down \
  7. && sudo docker-compose --file compose.yml up --detach \
  8. && sudo docker-compose --file compose.yml logs --follow
  9. echo "操作:代码更新" \
  10. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  11. && cd ${project_path} \
  12. && sudo docker-compose --file compose.yml restart \
  13. && sudo docker-compose --file compose.yml logs --follow
  14. echo "操作:构建调试" \
  15. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  16. && cd ${project_path} \
  17. && sudo docker-compose --file compose.yml down \
  18. && sudo docker-compose --file compose.yml up --detach --build \
  19. && sudo docker exec -it sri-dino-pyserver01 bash
  20. echo "操作:启动调试环境" \
  21. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  22. && cd ${project_path} \
  23. && sudo docker-compose --file compose.yml down \
  24. && sudo docker-compose --file compose.yml up --detach \
  25. && sudo docker exec -it sri-dino-pyserver01 bash
  26. echo "操作:重启调试环境" \
  27. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  28. && cd ${project_path} \
  29. && sudo docker-compose --file compose.yml restart \
  30. && sudo docker exec -it sri-dino-pyserver01 bash
  31. echo "操作:进入调试环境" \
  32. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  33. && cd ${project_path} \
  34. && sudo docker exec -it sri-dino-pyserver01 bash
  35. echo "操作:初装启动" \
  36. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  37. && cd ${project_path} \
  38. && sudo docker-compose --file compose.yml down \
  39. && sudo docker-compose --file compose.yml up --detach --build \
  40. && sudo docker-compose --file compose.yml logs --follow
  41. echo "操作:开发调试" \
  42. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  43. && cd ${project_path} \
  44. && sudo docker-compose --file compose.yml down \
  45. && sudo docker-compose --file compose.yml up --detach \
  46. && sudo docker exec -it sri-dino-pyserver01 bash
  47. echo "操作:跟踪日志" \
  48. && project_path="/home/sri/repositories/repositories/SRI-DINO.Server-py/sri-server-bg03" \
  49. && cd ${project_path} \
  50. && sudo docker-compose --file compose.yml logs --follow