0

I made a angular frontend application and deployed on aws .Now this app is working alright on local machine but when deployed on aws and i tried to run using my domain name(using nginx) only index.html is showing and its not routing forward. ps:-the config file is fine as my other sample app(basic bootstrap) is running fine.

  • have you set correct `` in index.html for your root of app. from that location your app will going to load. This would be your `project name/RootFolder/your-router` – Developer Apr 12 '20 at 09:07
  • i dont think anything is wrong with the code as "ng serve" is working fine and my app is running on localHost.. Its when i deploy on server that i get the issue – Ritik verma Apr 12 '20 at 09:54
  • go to aws.. see from where your root folder is.. and check `index.html` file.. all router is served from base-path.. and you have to https://stackoverflow.com/questions/42059850/angular-2-and-aws-routes-not-found – Developer Apr 12 '20 at 10:49
  • https://medium.com/@sandeeptengale/deploy-angular-app-on-aws-ec2-instance-20749f17b33e – Developer Apr 12 '20 at 10:52
  • is domain.com/index.html working fine ? in my project we have hosted on aws s3 bucket. There also we are doing same thing – Piyush Jain Apr 12 '20 at 11:04

0 Answers0