Open HabibRh26 opened 2 years ago
[ ] git pull from remoteBranch
git pull origin branchName
[ ] run app to generate production files
npm run build
or npm run build --max_old_space_size=8192
[ ] navigate to nginx
folder
cd /usr/share/nginx/html/desiredFolder
[ ] delete previous production files
rm -rf ./*
[ ] copy production files from dist
directory to nginx
folder
cp -r /root/serviceNamePortal/dist/* ./
vi /etc/nginx/conf.d/name_portal.conf
systemctl restart nginx
V1
cd dirName
screen -S serviceName
ng serve --host ipAddress --port 99