0

Can anyone please explain the steps or provide a link that I can look into to demonstrate how to deploy my Angular2 app in a Nginx server.? My current position is, my Angular2 2 app is running on Angular2 CLI server and back end is NodeJs running on Express server. Please do explain from how to install Nginx to deploy in production as I am new to the same.

Amal
  • 295
  • 1
  • 5
  • 17
  • Possible duplicate of [How can I deploy my Angular 2 + Typescript + Webpack app](https://stackoverflow.com/questions/39612339/how-can-i-deploy-my-angular-2-typescript-webpack-app) – SNahar Aug 22 '17 at 11:51
  • @WildanS.Nahar In the link that you gave, its in the Linux environment, moreover I am not understanding the steps to edit the server config. In short, I have the dist folder ready, but not sure how to install and deploy in windows. Edited my question as well. Thanks – Amal Aug 22 '17 at 12:05
  • I edited my answer, providing tutorial on nginx installation in Windows. – SNahar Aug 22 '17 at 12:09

1 Answers1

2

These are the links that show deploying angular 2 app on nginx :

Angular 2 Official Deployment

Stackoverflow

From blog

For Windows, please follow these instructions to install Nginx in Windows :

Nginx official docs

Blog tutorial

After that, the rest step is just the same as the other environment, so you only have to dive deeper with nginx.

Hope this helps

SNahar
  • 134
  • 1
  • 13