I have an application with script steps where I PSOS. I need to know if my application is running as a local file or if its running on AWS Cloud. Is there a method to detect the environment host?
Get(HostApplicationVersion) returns "Cloud Server 220.127.116.11" for the current version.
I'd also suggest checking Get(LastError) after a PSoS script step, since it can fail for various reasons, even when hosted.
To determine local file, you can also use Get(HostIPAddress), empty when not hosted.
Get( ConnectionState ) < 1
Retrieving data ...