Skip to content

Instantly share code, notes, and snippets.

@brennanMKE
Last active September 21, 2017 00:03
Show Gist options
  • Save brennanMKE/ae38ec0fecb8dfee117373dbbd9ee5a0 to your computer and use it in GitHub Desktop.
Save brennanMKE/ae38ec0fecb8dfee117373dbbd9ee5a0 to your computer and use it in GitHub Desktop.
Installing Parse Server on Heroku

Parse Server Installation on Heroku

Creating a new Heroku app using Parse Server can be done with a simple button which automates most of the work. A button using the current page on the GitHub repository to control the installation process. The steps below will install Parse Server as an app on Heroku using a MongoDB instance.

  1. Create an account on Heroku
  2. Verify the Heroku account by adding a credit card (It will not be charged anything on the free tier.)
  3. Open the Parse Server page in your web browser
  4. Click the Install on Heroku buttton
  5. Follow the instructions to create a new Heroku app

At this point the app is deployed and running on Heroku with a MongDB instance. Next you will want a local copy of the files from the Parse Server repository that you can manage in your own repository. You will push changes to your own origin and also deploy to Heroku using Git to push to a Heroku remote.

  1. Install the Heroku CLI
  2. Create an empty repository on GitHub for the new app
  3. Use the commands below to get a local copy of Parse Server

Working with a Local Copy

The commands below use the Heroku CLI and Git to access the app hosted on Heroku as well as put files into the empty repository created in the step above.

heroku git:clone -a MYAPP
cd MYAPP/
git remote add origin https://github.com/ParsePlatform/parse-server-example.git
git pull origin master
git remote set-url origin git@github.com:USERNAME/MYAPP.git
git push
git push heroku master

With the files pushed to your own GitHub repository and the app deployed to Heroku you will now want to be able to pull changes from the upstream occasionally to stay up to date. The commands below will add an upstream, fetch updates and merge to master.

Updating from Upstream Repository

git remote add upstream https://github.com/ParsePlatform/parse-server-example.git
git fetch upstream -v
git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment