start-all.bat 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @echo off
  2. echo ============================================
  3. echo Project Startup Script
  4. echo ============================================
  5. echo.
  6. echo Please select startup mode:
  7. echo 1. Start both frontend and backend
  8. echo 2. Start frontend only
  9. echo 3. Start backend only
  10. echo.
  11. set /p choice="Please enter your choice (1-3): "
  12. if "%choice%"=="1" (
  13. echo.
  14. echo Starting backend server...
  15. start "Backend Service" cmd /k "cd /d d:\VUEobject\DNchngguo && call bin\run.bat"
  16. echo.
  17. echo Starting frontend server...
  18. start "Frontend Service" cmd /k "cd /d d:\VUEobject\DNchngguo\RuoYi-Vue3 && call bin\run-web.bat"
  19. echo.
  20. echo Frontend and backend servers are starting...
  21. echo Backend access address: http://localhost:8448
  22. echo Frontend access address: http://localhost:81
  23. echo.
  24. echo Press any key to exit the script...
  25. pause >nul
  26. ) else if "%choice%"=="2" (
  27. echo.
  28. echo Starting frontend server...
  29. start "Frontend Service" cmd /k "cd /d d:\VUEobject\DNchngguo\RuoYi-Vue3 && call bin\run-web.bat"
  30. echo.
  31. echo Frontend server is starting...
  32. echo Frontend access address: http://localhost:81
  33. echo.
  34. echo Press any key to exit the script...
  35. pause >nul
  36. ) else if "%choice%"=="3" (
  37. echo.
  38. echo Starting backend server...
  39. start "Backend Service" cmd /k "cd /d d:\VUEobject\DNchngguo && call bin\run.bat"
  40. echo.
  41. echo Backend server is starting...
  42. echo Backend access address: http://localhost:8448
  43. echo.
  44. echo Press any key to exit the script...
  45. pause >nul
  46. ) else (
  47. echo.
  48. echo Invalid choice! Please enter a number between 1-3.
  49. echo Press any key to exit the script...
  50. pause >nul
  51. )