This commit is contained in:
17
fix-bcrypt-complete.bat
Normal file
17
fix-bcrypt-complete.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user