Last active
July 20, 2018 09:36
-
-
Save Zodiase/10f7d9221fa5d1d7728c040d3b1233ed to your computer and use it in GitHub Desktop.
Setup deploying Meteor app in existing Git repo to Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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