Deploy
The Deploy operation is the most critical operation on KintoHub. This functionality is responsible for safely deploying changes to your service's environment with no downtime.
#
How To DeployThere are several ways you can deploy updates to a new or existing service.
#
Deploy New Service- Choose your environment you are interested in deploying into at the top left.
- Click on the
Create Service
button - Choose a service from the list of services provided
- Fill in the Repository information in
Import URL
tab - Fill in the Build Settings information
- Click on the
Deploy
at the top right
#
Deploy a Configuration Update- Choose your environment you are interested in deploying into at the top left.
- Choose the service you are interested in editing under the services list
- Click on the Edit Service at the top right
- Make the changes within the various tabs you wish to edit
- Click on the Deploy at the top right
#
Deploy a Previous Release- Choose your environment you are interested in deploying into at the top left.
- Choose the service you are interested in editing under the services list
- Click on the Releases tab near the top left
- Click on the ... within the row of the release you wish to deploy
- Click on the Rollback option
important
The Rollback option is available for any service which has atleast 2 successfully deployed releases. However, releases with the status Aborted
and Failed
cannot be rolled back.
#
Deploy Updated Code From Your Branch- Choose your environment you are interested in deploying into at the top left.
- Choose the service you are interested in editing under the services list
- Click on the Trigger Deploy at the top right of the service
#
Automatically Deploy New Code (CI/CD)Check out CI/CD for more information.
#
Deploy LogsAfter clicking deploy, you will see a real time view of the Release Logs.
#
How Does Deploy Work?When you deploy a service many things occur under the hood.
- Your deploy request is queued for deployment.
- KintoHub starts the deployment and updates its state to Deploying.
- Your code is pulled from your repository.
- KintoHub executes your Build Command from your Build Settings.
- Once your build is successful, KintoHub stores your build artifact for historical use.
- KintoHub attempts to deploy your service using a Rolling Update.
- KintoHub streams the live Console logs of the new services for review and easy access to potential errors.
- Once KintoHub detects your service is live on the specified Port in your Build Settings. Your service is marked as deployed and your API traffic is switched to your new Release.
- If this is not your 1st deployment, KintoHub then shuts down your previous Release.
If any of the above steps fail, KintoHub will try its best to highlight the issue and provide shortcuts to resolving them.
note
All deployments are known as Rolling Updates. When you have a new version of your Service going out, KintoHub will ensure the new version of your service is 100% working and ready to receive traffic before shutting down the previous version of your release. During this time, you will be paying for two instances of your service running, which usually lasts less than 30 seconds.
#
Abort Deploy ActionUnder the Releases Tab of your service, you can click the ... dots a release that is actively deploying and then click Abort