Only start an application when there is a commit

This commit is contained in:
Petros Aggelatos 2013-12-31 06:39:47 +00:00 committed by Pablo Carranza Vélez
parent 0d50132702
commit 117251bbc1

View File

@ -89,7 +89,7 @@ exports.update = ->
json: true json: true
).spread((request, body) -> ).spread((request, body) ->
console.log("Remote apps") console.log("Remote apps")
remoteApps = ("registry.resin.io:5000/#{path.basename(app.git_repository, '.git')}/#{app.commit}" for app in body.d) remoteApps = ("registry.resin.io/#{path.basename(app.git_repository, '.git')}/#{app.commit}" for app in body.d when app.commit)
console.log(remoteApps) console.log(remoteApps)
console.log("Local apps") console.log("Local apps")