# Master App migration

# Steps

# Step 1: Create a new Master App

  • Go to https://dashboard.khacloud.xyz/apps/new and create a new App
  • Go to the new App and click on Convert to Master button

# Step 2: Database migration

  • SSH to the Database server and manually export/import the tables

You can do a normal export from the KhaCloud dashboard and import it using the API

# Step 3: Update the Master App's clients (Base Apps)

  • Create a new Task transfer-master-ownership and run it with the following payload
{
  "appId": "<MASTER_APP_ID>",
  "newAppId": "<NEW_MASTER_APP_ID>"
}

# Step 4: Switch the domain names of the new Master App and the old Master App

  • Switch the domain names
  • Regenerate the HAProxy configs