| title | Deploy your Astro Site with CloudRay | ||
|---|---|---|---|
| description | How to deploy your Astro site to your Ubuntu Server using CloudRay | ||
| sidebar |
|
||
| type | deploy | ||
| logo | cloudray | ||
| supports |
|
||
| i18nReady | true |
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. :::
To get started, you will need:
- A CloudRay Account
- Your app code stored in a GitHub repository
Deploying with CloudRay typically involves three main steps:
1. Install the [CloudRay Agent](https://cloudray.io/docs/agent) on your server to securely register your machine and enable remote automation.-
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.
-
Use CloudRay’s Runlog interface to execute your script on your connected server and monitor the deployment in real time.
Check out the Astro guide in CloudRay's docs.