Commit 6edb7f7f by mvginghina

Aggressively clear npm cache and reinstall dependencies

parent 554af685
Showing with 11 additions and 7 deletions
......@@ -2,16 +2,21 @@
set -e
# 1. Navighează la directorul cu codul sursă
cd /home/site/wwwroot
cd "/home/site/wwwroot"
# 2. Instalează dependențele
# 2. Clear npm cache (agresiv)
echo "Clearing npm cache (aggressively)..."
rm -rf /home/.npm
npm cache clean --force
# 3. Instalează dependențele
echo "Installing dependencies..."
npm install
npm install --force
# 3. Construiește aplicația Next.js
# 4. Construiește aplicația Next.js
echo "Building Next.js application..."
npm run build
# 4. Pornește aplicația Next.js
# 5. Pornește aplicația Next.js
echo "Starting Next.js application..."
npm start
\ No newline at end of file
npm start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment