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
If you deploy your app as a standard Java application, you can combine it with the Node.js buildpack to run ng build
during the Heroku build.
$ heroku buildpacks:add heroku/nodejs
$ heroku buildpacks:add heroku/java
$ git push heroku master
The Node.js buildpack will detect your package.json
, install Node.js and run npm
. Then the Java build can proceed as normal.
There is a guide for doing something very similar but with Grunt: Using Grunt with Java and Maven to Automate JavaScript Tasks