Expose a RESIN_SUPERVISOR_VERSION env var to app

This commit is contained in:
Pablo Carranza Vélez 2015-10-15 23:08:21 +00:00
parent 91b6c1b808
commit ee273f1ec7
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?