For the korp-frontend
repo, checkout the README on how to manifest new versions of the code.
For this repo (korp-frontend-sb
), do the same but skip package.json
and CHANGELOG.md
.
(TODO: Should we tag commits in this repo?)
See Instanser.md
To ensure consistent deployments, there are scripts in k2:~fkkorp/deploy-korp-frontend/
that pull and build the code for Production and Staging, respectively. Please read them and make sure you understand what they do.
# Staging - do this after pushing dev
ssh -A [email protected] deploy-korp-frontend/deploy-labb.sh
# Production - do this after releasing on master
ssh -A [email protected] deploy-korp-frontend/deploy-prod.sh
If you really need to deploy something out of the ordinary, you can build the frontend locally and copy the built files to the server.
Note:
- For both repositories, use the
dev
branch for/korplabb
and themaster
branch for/korp
yarn
andrsync
commands are run fromkorp-frontend
repository
- If the
.htaccess
file is accidentally deleted from the server it can be copy-pasted from this repository - Please run
yarn test
before deploying (although the tests are not quite reliable)