Skip to content

Running the Server

madisonDishman edited this page Apr 23, 2021 · 2 revisions

Locally

Heroku

Set up

Connecting your local repository to heroku

  1. Install the heroku cli https://devcenter.heroku.com/articles/heroku-cli#download-and-install
  2. cd into the root folder Fall2020-Group09 and login heroku login
  3. Connect the heroku project as a remote repository heroku git:remote -a measuringplacesd

Now your computer can push to the heroku app

Pushing to Heroku

(this method pushes files only found in the backend directory, completely ignoring the frontend)

  1. git add .
  2. git commit -m “heroku update”
  3. git subtree push -–prefix backend heroku master

The routes should be using https://measuringplacesd.herokuapp.com/ as the root, For example for the users api https://measuringplacesd.herokuapp.com/api/users/

Clone this wiki locally