Spring boot + Angular 6 + Heroku

1

I created a web application where the front uses angle 6 and the back uses spring boot.

My goal at the moment is to put the application online.

On the local server when I run the spring boot the angle is normally called, when I put the application in Heroku only the rest links work, when I try to access a route from the angle is shown me error.

Could anyone help me?

Link generated by Heroku: link

Location link: link

Angle application link: link

Note: I have already made the right settings to integrate angular 6 with spring boot and for this reason it works perfectly locally.

    
asked by anonymous 26.09.2018 / 06:25

1 answer

0

Maicon { useHash: true } setting is being enabled on your application routes.

That is, the url https://sgm1.herokuapp.com/login is being called as https://sgm1.herokuapp.com/#/login .

I do not know if Heroku made this change automatically or not. But if you want to remove the useHash you will need to redirect everything other than the API to index.html .

    
01.10.2018 / 18:14