Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.95 KB

README.md

File metadata and controls

52 lines (30 loc) · 1.95 KB

YJDH services

kesaseteli

YJDH-Kesäseteli

kesaseteli Development with Docker

  1. Copy the contents of .env.kesaseteli.example to .env.kesaseteli and modify it if needed.

  2. Run yarn kesaseteli or, if you want to rebuild, then yarn kesaseteli --build

The Frontend is now running at localhost:3000 The backend is now running at localhost:8000

  1. If services fail to get up, yarn clean might help.

Benefit

YJDH-Benefit

Benefit Development with Docker

  1. Copy the contents of .env.benefit-*.example to .env.benefit-* and modify them if needed.

  2. Run docker-compose -f docker-compose.benefit.yml up

The Applicant Frontend is now running at localhost:3000 The Handler Frontend is now running at localhost:3100 The backend is now running at localhost:8000

Setting up Husky pre-commit hooks:

  1. Run yarn install and yarn prepare on project root
  2. Try git commit -m foo. It does not commit anything for real but pre-commit hook should be triggered.

Known errors

  1. If github action deploy fail with error like this in your pull-request:

    Error: rendered manifests contain a resource that already exists. Unable to continue with install: Service "yjdh-135-send-localization-param-to-suomifi-yjdh-ks-service" in namespace "yjdh-yjdh-135-send-localization-param-to-suomifi-227" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "yjdh-135-send-localization-par-review-yjdh-ks-bknd": current value is "yjdh-135-send-localization-par-review-yjdh-ks-empl"

The reason is that your pr's branch name is too long. You have to rename it and create new pr. Instructions: https://stackoverflow.com/questions/30590083/how-do-i-rename-both-a-git-local-and-remote-branch-name