updating angular app on nginx server

Quick guide to deploy updates to your Angular application

· by Aron Kovacs

1. build your app

Navigate to your Angular project directory:

cd /path/to/your/angular/project

Build the project with production configuration:

ng build --configuration production
2. upload to server

Navigate to the build output directory:

cd dist/your-project-name/browser

Upload files to your nginx server:

scp -r * root@your-server-ip:/usr/share/nginx/html
3. restart nginx

SSH into your server:

ssh root@your-server-ip

Restart the Nginx service:

systemctl restart nginx
Note: Replace 'your-project-name' and 'your-server-ip' with your actual project name and server IP address. Make sure you have SSH access to your server before attempting the update.