mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-22 00:01:52 +00:00
Merge branch '2.2' of https://github.com/steedos/steedos-platform into 2.2
This commit is contained in:
commit
f27e7b6857
@ -572,7 +572,7 @@ actions:
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
console.error(XMLHttpRequest.responseJSON);
|
||||
toastr.error(jqXHR.responseText);
|
||||
toastr.error(XMLHttpRequest.responseText);
|
||||
$(document.body).removeClass('loading');
|
||||
}
|
||||
};
|
||||
|
@ -263,9 +263,7 @@ module.exports = {
|
||||
const settings = this.settings;
|
||||
const spaceId = settings.STEEDOS_CLOUD_SPACE_ID;
|
||||
const apiKey = settings.STEEDOS_CLOUD_API_KEY;
|
||||
// 未配置环境变量时,不执行初始化,也不报错
|
||||
if (!spaceId || !apiKey)
|
||||
return;
|
||||
|
||||
// console.log(chalk.blue('steedos-server.started'));
|
||||
const records = await objectql.getObject('spaces').directFind({top: 1, fields: ['_id'], sort: {created: -1}});
|
||||
const steedosConfig = objectql.getSteedosConfig();
|
||||
@ -274,6 +272,9 @@ module.exports = {
|
||||
}else{
|
||||
steedosConfig.setTenant({enable_create_tenant : true, enable_register: true});
|
||||
}
|
||||
// 未配置环境变量时,不执行初始化,也不报错
|
||||
if (!spaceId || !apiKey)
|
||||
return;
|
||||
const allowInit = await this.allowInit(records);
|
||||
if (!allowInit) {
|
||||
Initializing = false;
|
||||
|
Loading…
Reference in New Issue
Block a user