使用 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:
-
你的应用代码存储在 GitHub 存储库中
如何通过 CloudRay 仪表板进行部署
Section titled “如何通过 CloudRay 仪表板进行部署”¥How to Deploy through CloudRay Dashboard
使用 CloudRay 部署通常涉及三个主要步骤:
¥Deploying with CloudRay typically involves three main steps:
-
Install the CloudRay 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.
¥Official Resources
¥Check out the Astro guide in CloudRay’s docs.