This commit is contained in:
Wade Wegner 2017-07-25 11:59:23 -07:00
Родитель 4de20ebad1
Коммит 2d3437fad6
1 изменённых файлов: 41 добавлений и 41 удалений

Просмотреть файл

@ -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);
}
});
});
}
});
});