{"id":717,"date":"2022-08-07T12:37:34","date_gmt":"2022-08-07T12:37:34","guid":{"rendered":"https:\/\/turtleflyblog.com\/?p=717"},"modified":"2022-08-07T12:59:54","modified_gmt":"2022-08-07T12:59:54","slug":"deploy-angular-app-to-iis","status":"publish","type":"post","link":"https:\/\/turtleflyblog.com\/en\/2022\/08\/07\/deploy-angular-app-to-iis\/","title":{"rendered":"Deploy Angular App to IIS"},"content":{"rendered":"\n
Steps<\/strong><\/p>\n\n\n\n 1. Before deploying angular app to IIS, don\u2019t forget to download IIS URL Rewrite module. This will solve Angular app\u2019s route problems.<\/p>\n\n\n\n 2. When you deploy angular app to IIS server, type the command below in cmd console<\/p>\n\n\n\n ng build –base-href “\/AngularTest\/” \u2013prod(<\/em>you can use any other name other than AngularTest)<\/em>. If the command executes successfully, there will be a folder named dist created in your Angular project. The folder includes all the files you need to deploy to IIS.<\/p>\n\n\n\n