docs(*): Add Heroku docs

This commit is contained in:
Josh Creek
2023-07-13 19:50:34 +00:00
parent 7def4c21a8
commit 0333900574
2 changed files with 30 additions and 1 deletions
+4
View File
@@ -49,3 +49,7 @@ Once you've installed dependencies with `npm install`, start a development serve
```bash ```bash
npm run dev npm run dev
``` ```
### Deploying
See the README in `src/server` for details.
+26 -1
View File
@@ -6,4 +6,29 @@ Use Docker to deploy this.
Navigate to this folder and run `docker build -t estimation-ws-server .` to build the image. Navigate to this folder and run `docker build -t estimation-ws-server .` to build the image.
Run it using `docker run -it --rm -p 8080:8080 estimation-ws-server` Run it using `docker run -it --rm -p 8080:8080 estimation-ws-server`
## Deploying to Heroku
### Install the Heroku CLI
Download and install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-command-line).
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
`heroku login`
### Clone the repository
Use Git to clone `your-app-name`'s source code to your local machine.
`heroku git:clone -a your-app-name`
`cd your-app-name`
### Deploy your changes
Make some changes to the code you just cloned and deploy them to Heroku using Git.
`git add .`
`git commit -am "Your commit message"`
`git push heroku master`