mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
@@ -129,9 +130,14 @@ namespace Orchard.Environment {
|
|||||||
// load all tenants, and activate their shell
|
// load all tenants, and activate their shell
|
||||||
if (allSettings.Any()) {
|
if (allSettings.Any()) {
|
||||||
foreach (var settings in allSettings) {
|
foreach (var settings in allSettings) {
|
||||||
|
try {
|
||||||
var context = CreateShellContext(settings);
|
var context = CreateShellContext(settings);
|
||||||
ActivateShell(context);
|
ActivateShell(context);
|
||||||
}
|
}
|
||||||
|
catch(Exception e) {
|
||||||
|
Logger.Error(e, "A tenant could not be started: " + settings.Name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// no settings, run the Setup
|
// no settings, run the Setup
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user