Back to Withastro

Deploy your Astro Site with CloudRay

src/content/docs/en/guides/deploy/cloudray.mdx

latest1.4 KB
Original Source

import { Steps } from '@astrojs/starlight/components';

You can deploy your Astro project using CloudRay, a centralized platform that helps you manage your servers, organize Bash scripts, and automate deployment tasks across virtual machines and cloud servers.

:::note CloudRay itself does not host your site. Instead, it provides automation tools to run deployment scripts on your own infrastructure (e.g., Ubuntu servers) using a connected agent. :::

Prerequisites

To get started, you will need:

How to Deploy through CloudRay Dashboard

Deploying with CloudRay typically involves three main steps:

<Steps> 1. Install the [CloudRay Agent](https://cloudray.io/docs/agent) on your server to securely register your machine and enable remote automation.
  1. In your CloudRay Dashboard, write a reusable Bash script that clones your Astro repo, installs dependencies, builds your site, and configures a web server. Define any repo-specific values using CloudRay’s variable groups.

  2. Use CloudRay’s Runlog interface to execute your script on your connected server and monitor the deployment in real time.

    </Steps>

Official Resources

Check out the Astro guide in CloudRay's docs.