Forgot to return $.ajax
This commit is contained in:
Родитель
4de20ebad1
Коммит
2d3437fad6
|
@ -57,54 +57,54 @@ $(document).ready(function () {
|
|||
\tscratch-org-def: ${scratchOrgDef}
|
||||
\tshow-scratch-org-url: ${showScratchOrgUrl}`);
|
||||
|
||||
return deployingApi('clone', githubRepo)
|
||||
.then(() => {
|
||||
return deployingApi('auth');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('create', scratchOrgDef);
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('push');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('auth');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('test');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('clone', githubRepo)
|
||||
.then(() => {
|
||||
return deployingApi('auth');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('create', scratchOrgDef);
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('push');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('auth');
|
||||
})
|
||||
.then(() => {
|
||||
return deployingApi('test');
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
// generate url
|
||||
commandData = {};
|
||||
commandData.command = 'url';
|
||||
// generate url
|
||||
commandData = {};
|
||||
commandData.command = 'url';
|
||||
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url: '/api/deploying',
|
||||
data: JSON.stringify(commandData),
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
dataType: 'json',
|
||||
success: (commandDataResponse) => {
|
||||
update_status(`${commandDataResponse.message}`);
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url: '/api/deploying',
|
||||
data: JSON.stringify(commandData),
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
dataType: 'json',
|
||||
success: (commandDataResponse) => {
|
||||
update_status(`${commandDataResponse.message}`);
|
||||
|
||||
const url = commandDataResponse.message;
|
||||
const url = commandDataResponse.message;
|
||||
|
||||
$("#loginUrl").attr("href", url);
|
||||
$("#loginUrl").text(`${url.substring(0, 80)}...`);
|
||||
$('#loginBlock').show();
|
||||
$("#loginUrl").attr("href", url);
|
||||
$("#loginUrl").text(`${url.substring(0, 80)}...`);
|
||||
$('#loginBlock').show();
|
||||
|
||||
// clean up
|
||||
commandData = {};
|
||||
commandData.command = 'clean';
|
||||
// clean up
|
||||
commandData = {};
|
||||
commandData.command = 'clean';
|
||||
|
||||
deployingApi(commandData);
|
||||
deployingApi(commandData);
|
||||
|
||||
message = `DONE!\n\n${message}`;
|
||||
$('textarea#status').val(message);
|
||||
}
|
||||
});
|
||||
});
|
||||
message = `DONE!\n\n${message}`;
|
||||
$('textarea#status').val(message);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
Загрузка…
Ссылка в новой задаче