$ git remote add heroku email@example.com:your-heroku-app-name.git
Git requires an SSH Key for secure communication with Heroku (see my article on Setup MacBook for node development). Deployment is then a push command. When Heroku receives the Git push command, it installs the application.
$ git push heroku master
After the website has installed, Heroku will run the postInstall command in the package.json file, which in our case will perform a Webpack production build to output minified assets.
"dist": "webpack -p", "postinstall": "npm run dist",
See the example React App running on Heroku.