Sitecloud is mainly a hosting service, we want to enable all kind of users to deploy to the web. In order to do that we embrace the JAMStack and hosts static websites built on frameworks like Gatsby.
Install first the Sitecloud CLI on your machine and connect to your account:
Now you can list all your available static sites with the next command:
Obviously you don't have any project yet. Go now to your Gatsby project directory and build it as usual:
Gatsby will build your website. Now it is time to publish it on Sitecloud, create a YAML file named
sitecloud.yml and with this content:
That will tell Sitecloud CLI where the built is located and the name of your project. Now execute this to publish to Sitecloud:
After succesfully finishing the process, your project will show up in the Sitecloud dashboard or you can also list it using the CLI:
Notice that a dynamic URL has been created for your project, this URL won't change and you can use it to link to your DNS service.