Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Mihai-Valeriu Ginghina
/
WBT2425_6
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
4
Merge Requests
2
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca440057
authored
May 15, 2025
by
mvginghina
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Robust dependency installation with node_modules removal and legacy peer deps
parent
6edb7f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
deploy.sh
deploy.sh
View file @
ca440057
...
...
@@ -4,19 +4,23 @@ set -e
# 1. Navighează la directorul cu codul sursă
cd
"/home/site/wwwroot"
# 2. Clear npm cache (ag
resiv
)
# 2. Clear npm cache (ag
gressively
)
echo
"Clearing npm cache (aggressively)..."
rm
-rf
/home/.npm
npm cache clean
--force
# 3. Instalează dependențele
# 3. Remove node_modules directory
echo
"Removing node_modules directory..."
rm
-rf
node_modules
# 4. Instalează dependențele
echo
"Installing dependencies..."
npm install
--force
npm install
--force
--legacy-peer-deps
#
4
. Construiește aplicația Next.js
#
5
. Construiește aplicația Next.js
echo
"Building Next.js application..."
npm run build
#
5
. Pornește aplicația Next.js
#
6
. Pornește aplicația Next.js
echo
"Starting Next.js application..."
npm start
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment