From 42440a8720ff5afaa72ed1f6f0b21024e76f8e82 Mon Sep 17 00:00:00 2001 From: Joseph Ditton Date: Mon, 6 Dec 2021 18:07:25 -0700 Subject: [PATCH] finishes adding deploy instructions to readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec60275..a2e9baf 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ $ yarn test:cov ``` ## Setup Heroku -We will deploy all our projects to Heroku. Heroku is a cloud platform that is easy and free to use. Will only need to run these step once for each computer you are working on this semester. +We will deploy all our projects to Heroku. Heroku is a cloud platform that is easy and free to use. You will only need to run these step once for each computer you are working on this semester. ### Create an account On heroku.com create an account. @@ -174,5 +174,23 @@ You should generate new values for the `ENCRYPTION_KEY`, `REFRESH_ENCRYPTION_KEY All vars should be named the exact same as they are in the `.env` file. +### Link to Heroku +You publish to Heroku using `git`. Run the following command to add the heroku remote +```bash +$ heroku git:remote -a +``` +If your app name in Heroku was `spy-chat` then you would run +```bash +$ heroku git:remote -a spy-chat +``` + +## Deploying +We finally made it! To deploy your app to Heroku run +```bash +$ git push heroku main +``` +and thats it! + +