云服务提供商
🌐 Cloud Providers
独立的 Mastra 应用可以部署到流行的云服务提供商,详细信息请参阅以下其中一份指南:
🌐 Standalone Mastra applications can be deployed to popular cloud providers, see one of the following guides for more information:
有关自托管 Node.js 服务器部署,请参阅 创建 Mastra 服务器 指南。
🌐 For self-hosted Node.js server deployment, see the Creating A Mastra Server guide.
先决条件Direct link to 先决条件
🌐 Prerequisites
在部署到云提供商之前,请确保你已经:
🌐 Before deploying to a cloud provider, ensure you have:
- 一个 Mastra 应用
- Node.js
v22.13.0或更高版本 - 一个用于你的应用的 GitHub 仓库(大多数 CI/CD 设置所必需)
- 域名管理访问(用于SSL和HTTPS)
- 对服务器设置有基本了解(例如 Nginx、环境变量)
warning
LibSQLStore 会写入本地文件系统,而在使用短暂文件系统的云环境中不被支持。如果你要部署到像 AWS Lambda、Netlify、Azure 应用服务或 Digital Ocean 应用平台这样的平台,你必须移除所有使用带有文件 URL 的 LibSQLStore。请使用内存存储(:memory:)或像 Turso、PostgreSQL 或 Upstash 这样的外部存储提供商。