feat(deploy): add Docker full-stack deployment and server pack scripts
Enable one-click production deploy via docker-compose.prod.yml, with deployment docs and zip packaging for Baota upload. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
23
pack.bat
Normal file
23
pack.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
|
||||
where node >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Node.js not found. Install Node.js 20+ first.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
node pack.mjs
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
|
||||
echo.
|
||||
if not %EXIT_CODE%==0 (
|
||||
echo Pack failed.
|
||||
pause
|
||||
exit /b %EXIT_CODE%
|
||||
)
|
||||
|
||||
pause
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user