deploy shell version from the client, not the server
This commit is contained in:
Родитель
9ca0b05f45
Коммит
40eefed317
|
@ -655,7 +655,13 @@ module TDev.AppExport
|
|||
didRedeploy = true
|
||||
msg.setChildren(lf("redeploying shell..."));
|
||||
return getProfile()
|
||||
.then(() => wa.userPWD ? Util.httpPostJsonAsync(deployEndpoint("deploytdconfig"), mkFtp()) : null)
|
||||
.then(() => {
|
||||
if (!wa.userPWD) return null
|
||||
var d:any = mkFtp()
|
||||
d.pkgShell = (<any>TDev).pkgShell
|
||||
d.shellVersion = Runtime.shellVersion
|
||||
return Util.httpPostJsonAsync(deployEndpoint("deploytdconfig"), d)
|
||||
})
|
||||
.then(resp => {
|
||||
if (isDeployError(resp)) return
|
||||
if (resp && resp.config && resp.config.deploymentKey) return final(resp.config)
|
||||
|
|
|
@ -884,9 +884,9 @@ var deployHandlers = {
|
|||
jsFile: jsPath,
|
||||
timestamp: Date.now(),
|
||||
timestampText: new Date().toString(),
|
||||
shellVersion: TDev.Runtime.shellVersion,
|
||||
shellVersion: ar.data.shellVersion || TDev.Runtime.shellVersion,
|
||||
}
|
||||
var files = (<any>TDev).pkgShell
|
||||
var files = ar.data.pkgShell || (<any>TDev).pkgShell
|
||||
var names = Object.keys(files)
|
||||
var sendOne = (i:number) => {
|
||||
if (i < names.length) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче