Executing your Server Code
Once you deploy your Server Code in Kii Cloud, it will be executed according to setting configured in Server Hook configuration file.
You can execute your Server Code from the client SDK. See Manually Executing Server Code to learn more.
When you manually execute your Server Code, a DEBUG level event will be recorded in the developer log. You can check the log with the command line tool. See Inspect Developer Log to learn more.
Executing with Server Hook (Server Triggered)
A Server Code will be executed based on the triggers set in Server Hook configuration file. The server code is executed "at least once", so it could be executed multiple times.
No log will be recorded in the developer log when Server Code is executed by the server triggered hook. If you want to record some custom messages, for instance for debugging, you can explicitly record them in your code. See Developer Log to learn more.
Executing with Server Hook (Schedule Based)
A Server Code will be executed at the designated time set in Server Hook configuration file.
You can check the result of the executions with the command line tool. The tool will give you a list of schedule based execution. See Checking Schedule Based Execution Results to learn more.
Executing with Thing-IF Trigger
Unlike a client application, you cannot show an error message when an error occurs in your Server Code. When designing your Server Code, please be careful to ensure data consistency and consider about error recovery process as needed. You can also implement your Server Code so as to later recover the process manually with the help of the developer log.