First time Deploying / Production

9 views
Skip to first unread message

Uri Gross

unread,
Aug 13, 2020, 8:08:23 AM8/13/20
to Angular and AngularJS discussion

Hi there,
So I typed "ng build --prod"  to create a dist folder.
I know I should copy it to the server I would like to host my angular website.

But How do I know this website will be shown when it's still on my pc? If I  go to "dist" folder and press on index.html should the website run?
Or should the project will run on my pc only from "ng s" ? 

Sander Elias

unread,
Aug 14, 2020, 5:02:09 AM8/14/20
to Angular and AngularJS discussion
Hi Uri,

Use a development server like Http-Server to serve the build locally

Regards
Sander
Reply all
Reply to author
Forward
0 new messages