speckleworks / SpeckleServer

Check a brand new Speckle at: https://github.com/specklesystems
http://speckle.systems
MIT License
110 stars 29 forks source link

fix(api): set api version from env var #201

Closed AntoineDao closed 4 years ago

AntoineDao commented 4 years ago

use "SPECKLE_API_VERSION" env var to set the API version that appears on the "/api" endpoint. This environment variable is set automatically for docker containers.

fix #200

AntoineDao commented 4 years ago

FYI @peterjgrainger once this is merged you should be able to deploy container images and have the correct version set. If not using containers you should be able to set the SPECKLE_API_VERSION env var on the machine you are deploying your speckle server on which will then be displayed on the /api endpoint.

didimitrie commented 4 years ago

Thanks @AntoineDao 💯

botsalot commented 4 years ago

:tada: This PR is included in version 1.9.10 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: