-1

I have an existing Angular 2 project and I want to deploy it for production mode. I have run these commands and when I open the index.html file inside the dist folder I get this message app works! instead of my real application.

ng init
ng build -prod --aot

How can I deploy this existing application?

Dr. Cool
  • 3,713
  • 3
  • 22
  • 26
M1X
  • 4,971
  • 10
  • 61
  • 123
  • Possible duplicate of [How to deploy a simple Angular2 app on a shared hosting?](http://stackoverflow.com/questions/40854368/how-to-deploy-a-simple-angular2-app-on-a-shared-hosting) – Martin Dec 05 '16 at 20:01

1 Answers1

1

You need a webserver to serve the content of your app. Run it locally or deploy your dist folder somewhere in the web.

Dimanoid
  • 6,999
  • 4
  • 40
  • 55