Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy Angular 4 app to apache htdocs?

Hi i would like to know how to deploy Angular 4 app to apache's htdocs. I tried copying the whole content of the project and do ng --build but still not working, please help Thanks

like image 889
Arcubalino Avatar asked May 28 '26 16:05

Arcubalino


1 Answers

use this command

ng build --base-href .

& Then copy the dist

like image 88
Parth Ghiya Avatar answered May 31 '26 07:05

Parth Ghiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!