Deploy a Meteor 1.4 App to Heroku in 10 Steps

Gautham Elango
2 min readJun 10, 2016

--

This tutorial was created out of my frustration in deploying a Meteor App to Heroku. The steps I follow have been working well for me with Meteor 1.4 deploys and so I would like to share it with you all.

Meteor is a full-stack JavaScript framework. Install Meteor here. You will need a computer with an internet connection, and your credit card (only for verification, no transactions will be made)

TL;DR

1- Create a Heroku account

2- Install the Heroku Toolbelt

3- In your command line, change your directory to that of your chosen Meteor app, and type in:

heroku login

You will need to login with your Heroku credentials. If you do not have a Meteor app, then create one by typing in ‘meteor create <app>’. Change <app> to the name of your app.

4- Initialize a Git repository by typing in:

git init

5- Create your Heroku app by typing in:

heroku create <appname> --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git

Change <appname> to the name of your app which must be unique.

6- Set your Git remote by typing in:

heroku git:remote -a <appname>

7- Configure the URL of your app by typing in:

heroku config:set ROOT_URL=http://<appnameURL>.herokuapp.com

It is recommended that <appnameURL> should be the same as <appname>, but it can be anything unique.

8- We need to add all the files in the current directory. Type in:

git add .

9- We need to git commit. Type in:

git commit -m "First Deploy"

10- We need to push our application to Heroku. Type in:

git push heroku master

Done. If you need help post a response down below.

Also published on GG World.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (17)

Write a response