Sunday, November 28, 2021

Deploying angular ssr application

 Step -1: Build the angular application using following command

                  npm run build:ssr


Step-2 : transfer the dist folder to home/ubuntu/

Step-3 : kill pm2 using following command

pm2 kill

Step-4 : restart main.js using following command

 pm2 start dist/india-camps-web/server/main.js

other useful commands

  •    systemctl restart nginx
  •    sudo nginx -t
  •    sudo systemctl reload nginx
  •    sudo systemctl restart nginx
  •    sudo systemctl status nginx
  •    pm2 list
  •    pm2 kill