update
All checks were successful
Deploy to Production / deploy (push) Successful in 21s

This commit is contained in:
silverpro89
2026-01-28 11:21:21 +07:00
parent 57c45d27a3
commit 3791b7cae1
23 changed files with 1033 additions and 317 deletions

23
quick-fix-bcrypt.bat Normal file
View File

@@ -0,0 +1,23 @@
@echo off
REM Windows batch script to fix bcrypt on remote server
REM Usage: quick-fix-bcrypt.bat
set SERVER=root@senaai.tech
set PROJECT_PATH=/var/www/services/sena_db_api
echo ================================================================
echo Quick Fix Bcrypt Script
echo Server: %SERVER%
echo ================================================================
echo.
echo Connecting to server and fixing bcrypt...
echo.
ssh %SERVER% "cd %PROJECT_PATH% && npm rebuild bcrypt --build-from-source && npm rebuild && mkdir -p logs && echo. && echo [SUCCESS] Bcrypt rebuilt! && echo. && pm2 restart all 2>nul || pm2 start start.json && echo. && pm2 list"
echo.
echo ================================================================
echo Done! Check the output above.
echo ================================================================
pause