18 lines
846 B
Batchfile
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
|