Skip to content

Deployments

Patrick Otto edited this page Aug 24, 2020 · 9 revisions

This site explains how to do deployments of the appliacation:

We use github actions that are configured with scripts stored in the repo in /.github/wofkflows to deploy the current state of the application to test- and development-environments automatically on git pushes.

deploy the application to the development environment :

The application is deployed automatically to the development-environment on each push to the develop-git branch.

deploy the application to the test environment :

The application is deployed automatically to the test-environment on each commit to the stage-on-test git-branch.

If you need the current state of the develop-branch on the test system, use the following git-commands:

  1. make sure your local devlop branch is up to date
  2. git checkout stage-on-test
  3. git reset --hard develop
  4. git push --force-with-lease

manual deployments to prod

Quarano development setup is hosted in a cloud-foundry environment. Iy you need to deploy the application manually, please request access to cloud foundry from the organisators of this repo and install the CF-CLI.

Frontend and backend need to be deployed separately:

Backend

  1. go to the /backend directory of the repo
  2. mvn clean package
  3. cf login -a https://api.otc.quarano.xyz (maybe not needed, if you are already logged in)
  4. Choose target department in space selection (e.g. mannheim)
  5. CF push quarano-mannheim-backend -f ../manifest-otc.yml

Frontend

  1. go to the /frontend directory of the repo
  2. npm install
  3. npm run build-mannheim-prod-otc
  4. npm run prepare-deployment-otc
  5. cf login -a https://api.otc.quarano.xyz (maybe not needed, if you are already logged in)
  6. Choose target department in space selection (e.g. mannheim)
  7. CF push quarano-mannheim-frontend -f ../manifest-otc.yml