Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document detailed steps to deploy frontend to dev server #258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ Make a commit to https://github.com/hnuti-brontosaurus/bis which includes `#depl

So, e.g. you can update its frontend submodule, and make a commit with message `chore: update frontend #deploy`. In any case, please use commit messages consistent with current backend commit style.

### Detailed steps to deploy new frontend version to development server

1. have github repository [hnuti-brontosaurus/bis-frontend](https://github.com/hnuti-brontosaurus/bis-frontend/) updated with your changes
1. clone [hnuti-brontosaurus/bis](https://github.com/hnuti-brontosaurus/bis) onto your computer, including submodules (or update it to latest version with `git pull`)
```bash
git clone --recurse-submodules https://github.com/hnuti-brontosaurus/bis.git
```
1. go to `frontend` folder
`cd bis/frontend`
1. update the frontend submodule
```bash
git pull
```
1. go back to `bis`, commit the changes, and push them to remote master
```bash
cd ..
git add frontend
git commit -m "chore: update frontend #deploy"
git push
```

## Deployment to production server

When commit in https://github.com/hnuti-brontosaurus/bis is tagged with tag `v*.*.*`, a production build gets created. Then an administrator has to confirm the deployment.
Expand Down