Skip to content

使用 CloudRay 部署你的 Astro 网站

你可以使用 CloudRay 部署你的 Astro 项目。CloudRay 是一个集中式平台,可帮助你管理服务器、组织 Bash 脚本,并跨虚拟机和云服务器自动执行部署任务。

¥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.

¥Prerequisites

首先,你将需要:

¥To get started, you will need:

如何通过 CloudRay 仪表板进行部署

Section titled “如何通过 CloudRay 仪表板进行部署”

¥How to Deploy through CloudRay Dashboard

使用 CloudRay 部署通常涉及三个主要步骤:

¥Deploying with CloudRay typically involves three main steps:

  1. Install the CloudRay Agent on your server to securely register your machine and enable remote automation.

  2. 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.

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

¥Official Resources

查看 CloudRay 文档中的 Astro 指南

¥Check out the Astro guide in CloudRay’s docs.

更多部署指南

Astro v5.11 中文网 - 粤ICP备13048890号