This article recorded how I use heroku at the first time.

Getting Started

First, install heroku cli, and create a heroku app. After creating, you will get id of app like xxxx-yyyy-ooooo.

Add to `git`

git init
heroku git:remote -a (your id)

Deploy your application

git add .
git commit
git push heroku master

All things is done. Your application does work in heroku.


  • Use dependencies, not devDependencies.
  • Heroku just install packages in dependencies.
  • Use heroku-postbuild

If you use babel or other building tools, use heroku-postbuild to run script after packages install.