Content
View differences
Updated by Markus Kahl 18 days ago
The goal is to setup a endpoint that returns a version number that can be used to validate the currently deployed version of Hocuspocus on any live environment. This is useful as a healthcheck and validate that deploying a new version works correctly.
This can be achieved in different ways:
* Include an environment variable as part of deploying the Hocuspocus server (e.g. `DOCKER_TAG` like is used by OpenProject) and serve it on a new endpoint
* This needs to be done on the ops side
* Inject the git-sha on the application when building the image (on github actions) and serve that information from a new endpoint
* Need to figure out where to put this information, could be a plaintext file.
* _this has been done, the version can be extracted from the version field in the package.json file_
This can be achieved in different ways:
* Include an environment variable as part of deploying the Hocuspocus server (e.g. `DOCKER_TAG` like is used by OpenProject) and serve it on a new endpoint
* This needs to be done on the ops side
* Inject the git-sha on the application when building the image (on github actions) and serve that information from a new endpoint
* Need to figure out where to put this information, could be a plaintext file.
* _this has been done, the version can be extracted from the version field in the package.json file_