Fix preloaded apps by passing appId to extendEnvVars

This commit is contained in:
Pablo Carranza Vélez 2016-07-06 22:50:30 +02:00 committed by Pablo Carranza Velez
parent 59cf4fd652
commit 08d74b578b
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)