Files
sena_db_api_layer/fix-bcrypt-complete.bat
silverpro89 3791b7cae1
All checks were successful
Deploy to Production / deploy (push) Successful in 21s
update
2026-01-28 11:21:21 +07:00

18 lines
846 B
Batchfile

@echo off
REM Complete bcrypt fix for Windows
REM This will remove node_modules and reinstall everything
echo ================================================================
echo Complete Bcrypt Fix Script
echo Server: root@senaai.tech
echo ================================================================
echo.
ssh root@senaai.tech "cd /var/www/services/sena_db_api && echo 'Removing node_modules...' && rm -rf node_modules package-lock.json pnpm-lock.yaml yarn.lock && echo 'Installing with npm...' && npm install && echo 'Rebuilding bcrypt...' && npm rebuild bcrypt --build-from-source && echo 'Restarting PM2...' && pm2 restart all && pm2 list"
echo.
echo ================================================================
echo Done! Check the output above.
echo ================================================================
pause