I have a big issue. I\'m trying to deploy Spring Boot + Angular 2 web app on heroku but don\'t know how to do it. I tried several things including:
Making a
The most simple way to do it:
ng build
in angular 2 project root (if you are using angular-cli) and copy the content of dist folder to src/main/resources/static/.create Procfile (for maven):
web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar
commit and push changes.
Also, you need spring-boot-starter-web present in dependencies. Which has embedded tomcat and automatically configured to serve static content from the static folder.