Managing your Server Code

Kii Cloud provides a command line tool for managing your server code. The tool allows you do the followings:

Please read here to learn how to install the command line tool.

Steps for Managing Server Code

We present steps to upload your server codes (implemented following Server Code Syntax) in Kii Cloud and make them ready to execute.

You also need to understand the versioning so as to effectively manage your Server Code. See here to learn more.

  1. Prepare necessary files

    You need to have a Server Code file. If you are going to execute the Server Code automatically, you also need to have a Server Hook configuration file.

    • A Server Code contains all endpoints and required functions in one file.
    • A Server Hook configuration file contains all settings for the server triggered and schedule based hooks in one file. It is written following this format. If you are going to execute your server codes only manually, you do not need the Server Hook configuration file.
  2. Deploy Server Code

    Use the command line tool to deploy your Server Code and Server Hook configuration file. See Deploy your Server Code for more details.

    The deployed Server Code and Server Hook configuration file become active automatically, unless you specify otherwise. Once deployed, the Server Code will be launched when the conditions specified in the Server Hook configuration file are met. You can also launch the Server Code manually by following the procedures described in Executing your Server Code.

  3. Manage Server Code

    You can manage your Server Code (e.g. enabling, disabling and deleting). Please check the list at the top of this page for the available features.

    For example, suppose you find a bug in a new Server Code and want to revert to an old version. You can easily accomplish this by leveraging the listing feature and the enabling/disabling features.