- Heroku user.
- Heroku Toolbelt installed.
- A clean remote repository.
- Clone the project
git clone [email protected]:akaspi/webpack-on-heroku.git <your-folder>
cd <your-folder>
npm i
- Clean .git
rm -rf .git
- Initialize .git and push to new repository (Link)
- Login to Heroku:
heroku login
- Create an Heroku application:
heroku create
- Set 'production' environment variable:
heroku config:set NODE_ENV=production
- Deploy the app:
git push heroku master
Inspired by [Ditrospecta](http://ditrospecta.com/javascript/react/es6/webpack/heroku/2015/08/08/deploying-react-webpack-heroku.html) and [Heroku: Getting Stared With Node](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction).