what currently is the best indicator to work out if a site is running on cloud ?
uSync has a break in it not to run on cloud, based on a previous discussion this is :
var onUaaS = AppDomain.CurrentDomain.GetAssemblies()
.Any(a => a.FullName.StartsWith("Concorde.Messaging.Web"));
if (onUaaS)
{
LogHelper.Warn<uSyncApplicationEventHandler>("uSync doesn't run on UaaS, so it will just stop now");
return;
}
Running on Cloud
Hi,
what currently is the best indicator to work out if a site is running on cloud ?
uSync has a break in it not to run on cloud, based on a previous discussion this is :
but judging by some other posts on the forum it doesn't look like this works anymore - is there another way ?
Could you look for any of the Deploy assemblies? (I know you are probably after a HQ response ideally) Or the Deploy settings from web.config
or
yeah, that is essentially what it does (but not the deploy ones) as of 3 years ago :) the above assembly was in all umbraco cloud projects.
ideally i want a
Umbraco.Config.OnCloud
settingComment author was deleted
hey Kevin, what are you currently using ?
Nothing - at the moment the default behavior of uSync is not to import on startup so it's not critical for me.
(update - just to be clear that means i haven't had a definitive response from anyone yet, so i haven't done anything)
Comment author was deleted
ok thanks for the update Kevin :)
is working on a reply...