May 15th, 2019
A Meteor app is just a node.js app. By using a buildpack, we can deploy with almost zero configuration.
# (in project directory)
heroku login # if not already
heroku create appname
# set the buildpack
heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
# set node version
meteor node -v # copy
# package.json:
"engines": {
"node": "8.11.4" # paste
}
# connect mlab DB addon (free tier)
heroku addons:create mongolab:sandbox
# set root url
heroku config:set ROOT_URL="https://appname.herokuapp.com"
# NOTE: no '/' at the end of url
# (make changes)
git add, commit, push
# deploy
git push heroku master