Merge pull request #197 from resin-io/196-fix-preloading

Fix preloaded apps by passing appId to extendEnvVars
This commit is contained in:
Pablo Carranza Vélez 2016-07-06 20:39:18 -03:00 committed by GitHub
commit a9f24722c1
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Fix preloaded apps by passing appId to extendEnvVars
# v1.12.0
* Add endpoints for docker-compose up and down [Pablo]

View File

@ -20,7 +20,7 @@ loadPreloadedApps = ->
fs.readFileAsync(appsPath, 'utf8')
.then(JSON.parse)
.map (app) ->
utils.extendEnvVars(app.env, userConfig.uuid)
utils.extendEnvVars(app.env, userConfig.uuid, app.appId)
.then (extendedEnv) ->
app.env = JSON.stringify(extendedEnv)
knex('app').insert(app)