How to deploy angular-cli app on iis

后端 未结 10 1726
别那么骄傲
别那么骄傲 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:49

    for those who use angular i18n, you have to build the app for each language and put them in separate folders

    ng build --output-path=dist/fr --prod --bh /fr/
    ng build --output-path=dist/en --prod --bh /en/
    

    and here is the config for iis

    
     
      
        
        
            
                
                    
                    
                
                
                    
                    
                        
                        
                    
                    
                
                
                    
                    
                        
                    
                    
                
                
                    
                    
                        
                    
                    
                
            
        
     
     
    

提交回复
热议问题