GitHub deployment set up - aac5ts/parse-server-app GitHub Wiki

  1. In Github, create a new blank repository. Name it whatever you want, maybe <your name>s-parse-server-app.

  2. Copy the new repo's url.

  3. From the command line, in the base directory of parse-server-app:

    $ git remote add <pick a remote name> <url of remote repo you just created>
    $ git remote -v
    

    You should see your new remote in the list

    $ git push -u <remote name> master
    

    You should see your code in Github in your new remote repo.

  4. Connect your new remote to Heroku. In the Heroku dashboard for your app, under Deploy, select Github - Connect to GitHub. Search for your new remote repo, and click Connect when it pops up. You can now use either Manual or Automatic deploys.

    Manual - Recommended

    When you push changes from your local repo to this remote - you can then hit Deploy Branch from the Deploy page in the Heroku dashboard. This will deploy the specified branch to Heroku.

    Automatic

    When you push changed from your local repo to this remote and the specified branch, the changed will automatically be deployed to Heroku.

  5. Make a change to your code to test deployment. Navigate to base directory of your local repo. Open the file index.js in a text editor of your choice. On line 36 change the message that is displayed on the landing page of your Parse Server. Maybe change it to "Welcome to <your name>'s Parse Server!"

  6. Commit your changes:

    $ git add .
    $ git commit -m "your commit message here"
    
  7. Push your changes to your remote:

    $ git push <remote name> master
    
  8. Deploy to heroku from the dashboard (if you use Automatic deploys, it should have already deployed).

  9. Once the build succeeds, make sure it worked. Go to http://<your-app-name>.herokuapp.com. You should see the landing page with your updated message.

⚠️ **GitHub.com Fallback** ⚠️