Heroku is not currently set up to serve Angular2+ apps out of the box. This package uses server.js to point to the dist folder. Angular-cli dependencies are copied to heroku in production so that heroku can build using the angular-cli commands. This implements some fixes for routing and forces https. It also declares the engines to allow for good future friendliness. This uses Angular4 as a starting point. This is highly derivative on work done by chenkie but it uses a more up-to-date version of angular-cli.
I want this project to work as a starter:
-
Fork the repo or clone it locally.
-
Point Heroku deployment at your branch on github.
-
Create your angular-cli app locally and push it to your github.
If this all worked properly you will have a nice deployment channel.
This project was generated with Angular CLI version 1.0.3.