Deploy an Angular app with nginx
In this article we are going to discuss about deployment of an Angular app with nginx webserver
What is nginx?
nginx is a open source, free high performance HTTP webserver used for website hosting, reverse proxying, caching, load balancing. Initially it was designed as we webserver in addition to it’s HTTP server capabilities it can perform as a proxy server for email(IMAP,POP3 and SMTP) and a reverse proxy and load balancer for HTTP, TCP and UDP protocol.
Deploying Angular app with ngnix
Step 1: Downloading ngnix
You can download ngnix from the http://nginx.org/en/download.html official website of ngnix
Unzip nginx in your server shown as below
Step2: Building an angular app
Build your Angular app with below command and it will generate a dist folder as shown below:
ng build — prod