Merge pull request #6 from resin-io/RES-1335-expose-version-as-env-var

Expose a RESIN_SUPERVISOR_VERSION env var to app
This commit is contained in:
Pablo Carranza Vélez 2015-10-16 10:53:49 -03:00
commit 84fca22485
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Expose a RESIN_SUPERVISOR_VERSION env var to app [Pablo]
# v1.1.1
* Prevent non-fatal errors from causing the supervisor to exit [Lorenzo]

View File

@ -132,6 +132,7 @@ exports.extendEnvVars = (env, uuid) ->
RESIN_SUPERVISOR_HOST: host
RESIN_SUPERVISOR_PORT: config.listenPort
RESIN_SUPERVISOR_API_KEY: exports.getOrGenerateApiSecret()
RESIN_SUPERVISOR_VERSION: exports.supervisorVersion
RESIN: '1'
USER: 'root'
if env?