Guide: Heroku
Deploying to Heroku is very simple:
- Be in a Git repo (optional,
git init
) - Create a Heroku app using
heroku create [name]
- Move
@noderize/scripts
fromdevDependencies
todependencies
in yourpackage.json
. - Add
heroku-postbuild
script inpackage.json
:{ "scripts": { "...": "...", "heroku-postbuild": "noderize-scripts build --env production" } }
- Deploy like normal (if in a Git repo, commit and push with
git push heroku master
)!
This method also works for Dokku.