Heroku

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.

Notes

  • 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.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.