Deploying to KintoHub
KintoHub is an all-in-one platform to combine and deploy your backend services, websites, cron jobs, databases and everything your app needs in one place.
KintoHub allows anyone to deploy for free their static websites.
Prerequisites
This guide assumes you already have a Gatsby project to deploy. If you need a project, you can use the Quick Start or KintoHub’s template Gatsby Template before continuing.
Deploy
Navigate to KintoHub and login/sign-up your account.
Create a new service of type Static Website.
Grant the permission needed for accessing the repo that you created in the previous step. Or if you prefer not to connect your GitHub account, you may select Import URL and provide your access token.
Configure the service. Add the build command
yarn && yarn build
. This command is actually doing the following:- Install the dependencies.
- Run
gatsby build
. - Put the generated site into the
./public
directory, which is the default value of “Build Output Path”.
Everything is set up, now press the deploy button and wait until deployment is finished.
Once the deployment is finished you can close the release logs, check the Access tab and copy the URL there. Paste it to the browser and you will see your website is live!
Custom domain
- Access the Domains tab.
- Enter your domain or subdomain you wish to map to your service.
- Click Add Domain.
- Follow the instructions to add a CNAME key and value to your DNS host provider.
- Click OK.
Wait for the certificate to be generated and access your new custom domain.
Note: your DNS might take some time to update your domain.
Support
Chat with KintoHub developers on Discord.