Skip to content

Commit

Permalink
SHELL-1189 #done Rename build version environment variable
Browse files Browse the repository at this point in the history
Resolves a name conflict with CI deployments.
  • Loading branch information
KalleV committed Sep 12, 2017
1 parent ff3dc2a commit f15e411
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/api-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function addVersionRoutes(versionDependencies) {

function returnVersion(req, res) {
res.json({
buildVersion: process.env.BUILD_VERSION || 'unknown',
buildVersion: process.env.LABSHARE_BUILD_VERSION || 'unknown',
versions: versionDependencies
});
}
Expand Down
2 changes: 1 addition & 1 deletion docs/env-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LabShare Services can use the following environment variables:

| Name | Type | Description |
| ---- | ---- | ----------- |
| BUILD_VERSION | String | Can be used to display a build or deployment version when accessing the `/versions` API route. Optional. |
| LABSHARE_BUILD_VERSION | String | Can be used to display a build or deployment version when accessing the `/versions` API route. Optional. |
| PORT | Number | The port used to run the server. It overrides the `config.json` value set for `services.listen.port`. Optional. |

### Defining environment variables using a .env file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@labshare/services",
"namespace": "services",
"main": "./",
"version": "v0.17.0824",
"version": "v0.17.0912",
"description": "LabShare API service manager",
"contributors": "https://github.com/LabShare/services/graphs/contributors",
"repository": {
Expand Down

0 comments on commit f15e411

Please sign in to comment.