npm run build
- build angular app
- start spring-boot-app
- open http://localhost:8080
npm run start
{
"/api/*": {
"target": "http://localhost:8080/",
"secure": false
}
}
- Open package.json
- Find start script
- Change to below code
ng serve --proxy-config proxy-config.json
- Create postbuild and predeploy script in package.json
heroku config:set MAVEN_SETTINGS_PATH=settings.xml
git push heroku master