run-web.sh 560 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # /**
  3. # * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
  4. # * No deletion without permission, or be held responsible to law.
  5. # *
  6. # * Author: ThinkGem@163.com
  7. # *
  8. # */
  9. echo ""
  10. echo "[信息] 打包Web工程,并运行Web工程。"
  11. echo ""
  12. # 打包Web工程(开始)
  13. cd ..
  14. mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
  15. cd target
  16. # 打包Web工程(结束)
  17. # 根据情况修改 web.jar 为您的 jar 包名称
  18. mkdir app
  19. cp web.war ./app
  20. cd app
  21. jar -xvf web.war
  22. rm web.war
  23. cd WEB-INF
  24. exec ./startup.sh