Skip to content

Instantly share code, notes, and snippets.

@Zodiase
Last active July 20, 2018 09:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zodiase/10f7d9221fa5d1d7728c040d3b1233ed to your computer and use it in GitHub Desktop.
Save Zodiase/10f7d9221fa5d1d7728c040d3b1233ed to your computer and use it in GitHub Desktop.
Setup deploying Meteor app in existing Git repo to Heroku
#!/bin/bash
# Login to heroku CLI.
heroku login
# Create a new app project on heroku.
heroku create <appName> --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git
# Add heroku remote to the git config file.
heroku git:remote -a meteor-mdc-demo
# Add relative path to app (when needed).
heroku config:add METEOR_APP_DIR=meteor-app
# Set Meteor App Url (required).
heroku config:add ROOT_URL=https://<appName>.herokuapp.com/
# Set Meteor App Mongo Url (required if using mongo).
heroku config:add MONGO_URL=mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
# Push the current branch to heroku (to deploy it).
git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment