forked from Burial0268/Lyric-Atlas-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
33 lines (27 loc) · 708 Bytes
/
start.bat
File metadata and controls
33 lines (27 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
chcp 65001 >nul
title Lyric Atlas API - Production Server
echo ========================================
echo Lyric Atlas API - Production Server
echo ========================================
echo.
cd /d "%~dp0"
if not exist ".env" (
echo [ERROR] .env file not found!
echo Please create .env file first.
pause
exit /b 1
)
if not exist "dist\server.js" (
echo [INFO] Building production version...
pnpm run build
echo.
)
echo [INFO] Starting production server...
echo [INFO] Main API: http://localhost:3000
echo [INFO] Cache Admin: http://localhost:8300
echo.
echo Press Ctrl+C to stop the server.
echo ========================================
echo.
pnpm run prod