Deploy Angular 2 to Apache Server

后端 未结 8 1989
半阙折子戏
半阙折子戏 2020-12-07 16:47

I want to deploy an Angular 2 application on an Apache server. I\'ve read various guides like this and this but none of them is working. I have npm and ng

8条回答
  •  爱一瞬间的悲伤
    2020-12-07 17:31

    1. Change base tag in index.html file

    2. Create a build after that

      ng build --prod

    3. Now you will have a new folder dist, deploy dist folder now. It should work.

提交回复
热议问题