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/scriptsfromdevDependenciestodependenciesin yourpackage.json. - Add
heroku-postbuildscript 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.