Can I deploy an angular site to any web hosting provider?

Fred picture Fred · Mar 8, 2018 · Viewed 11.9k times · Source

Can I host my angular 5 site to any web hosting provider?

If I do "ng build --prod" can I just deploy everything in the dist folder to the hosting provider? or does angular require you to find a specific web hosting service?

I was trying to use either Namecheap hosting or 000webhosting but I wanted to make sure it works.

Answer

sahanj picture sahanj · Mar 8, 2018

You can also host the build files on an Apache server. I just copied them to the htdocs directory and it worked for me.