Each time your code is synced to Kinde, a new deployment is created. A deployment is a unique point-in-time process that checks the code, which can then be made live.
To fully manage deployments and control which ones go live, switch off the auto-go-live function. It’s okay to leave this on for non-production environments, but you don’t want this on for production.
In Settings > Git repo, switch off the Set synced code live immediately option**.**
Every time you change your code in GitHub, you must sync those changes back to Kinde so you can make them live.
- Go to Design > Custom code.
- Select Sync code. A new deployment is generated on click. If the deployment is successful, you will be able to make it live.
- Go to Design > Custom code. The Summary page shows which deployment is live and which is ready to go.
- If you want, select Sync code to get the latest deployment.
- Select Deployments in the menu. A list of current and previous deployments is shown.
- Find the deployment you want to make live and select Make live in the three dots menu.
To roll back a deployment, you just need to make a previous deployment live.
- Go to Design > Custom code. The Summary page shows which deployment is live and which is ready to go.
- Select Deployments in the menu. A list of current and previous deployments is shown.
- Find the previous deployment you want to roll back to and select Make live in the three dots menu. This will override the current live deployment.