- get heroku to install
node_modules in public folder.
add the following script to main package.json scripts:
"heroku-postbuild": "npm --prefix ./server/public install"
- use angular-cli to create /dist folder
- add express configuration to serve /dist folder when in distribution
- add heroku env variable that states we are in dist
this article is gonna help
angular-cli docs
heroku customizing the build process
node_modulesin public folder.add the following script to main
package.jsonscripts:this article is gonna help
angular-cli docs
heroku customizing the build process