Files
DianZhanDemo/app/start-all-simple.bat

48 lines
1.1 KiB
Batchfile
Raw Normal View History

2025-12-11 01:29:41 +08:00
@echo off
REM Nuxt Production Server Startup Script (BAT Version)
REM Author: AI Assistant
REM Version: 1.0
REM Change to script directory
cd /d "%~dp0"
echo =======================================
echo Nuxt4Curd Production Server Startup
echo =======================================
echo.
REM 1. Check Node.js environment
echo 1. Checking Node.js environment...
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Node.js is not installed!
echo Please install Node.js v18+ and try again.
pause
exit /b 1
)
REM Get Node.js version
for /f "tokens=*" %%i in ('node --version') do set NODE_VERSION=%%i
echo SUCCESS: Node.js version: %NODE_VERSION%
echo.
REM 2. Check current directory
echo 2. Checking current directory...
if not exist "server\index.mjs" (
echo ERROR: Server files not found!
echo Please ensure server files are in the output directory.
pause
exit /b 1
)
echo SUCCESS: Server files found in current directory.
echo.
REM 3. Start server
echo 3. Starting Nuxt production server...
echo.
echo Press Ctrl+C to stop the server at any time.
echo.
REM Run server command
node server/index.mjs