How to deploy angular-cli app on iis

后端 未结 10 1797
别那么骄傲
别那么骄傲 2020-12-23 02:17

I have simple angular2-cli app (one page with model driven form - no router involved). With \"ng serve\" all works fine. I made production version with ng build --product. I

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 02:48

    In addition to ulubeyn's answer that mostly worked for me, I added my own IIS re-write rules to enable:

    1) the initial redirection from /dist to alias 2) Javascript downloads from alias and 3) Angular routing on the alias

    
      
        
        
      
      
        
        
      
      
        
        
          
          
          
        
        
      
      
        
        
          
          
          
        
        
      
    
    

提交回复
热议问题