51.docker-deploy-copy.bat 941 B

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. echo %~n0.bat start...
  3. ::#1 get basePath
  4. set curPath=%cd%
  5. cd /d "%~dp0"
  6. cd /d ..\..\..
  7. set basePath=%cd%
  8. :: #2
  9. set publishPath=%basePath%\Publish\release\release\Station(net6.0)
  10. set dockerPath=%basePath%\Publish\release\release\docker-deploy
  11. rd /s /q "%dockerPath%"
  12. :: #3 copy dir
  13. xcopy "%basePath%\Publish\ReleaseFile\docker-deploy" "%dockerPath%" /e /i /r /y
  14. :: #4 copy station
  15. xcopy "%publishPath%\ServiceCenter\appsettings.json" "%dockerPath%\sers"
  16. xcopy "%publishPath%\Gateway\appsettings.json" "%dockerPath%\sers-gateway"
  17. xcopy "%publishPath%\Gover\appsettings.json" "%dockerPath%\sers-gover"
  18. xcopy "%publishPath%\Demo\appsettings.json" "%dockerPath%\sers-demo"
  19. xcopy "%publishPath%\Robot\appsettings.json" "%dockerPath%\sers-demo-robot"
  20. xcopy "%basePath%\Publish\release\release\压测\单体压测net6.0\ServiceCenter\appsettings.json" "%dockerPath%\sers-demo-sersall"
  21. echo %~n0.bat success
  22. cd /d "%curPath%"