You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

FastAPI Cloud

你可以用一条命令将你的 FastAPI 应用部署到 FastAPI Cloud🚀

$ fastapi deploy

Deploying to FastAPI Cloud...

✅ Deployment successful!

🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev

CLI 会自动检测你的 FastAPI 应用并将其部署到云端。如果你尚未登录,浏览器会自动打开以完成认证流程。

就这样!现在你可以通过该 URL 访问你的应用。

关于 FastAPI Cloud

FastAPI CloudFastAPI 背后的作者与团队打造。

它让你以最小的投入完成 API 的构建部署访问

它把使用 FastAPI 构建应用时的开发者体验,同样带到将应用部署到云上的过程。🎉

它还会替你处理部署应用时大多数需要的事项,例如:

  • HTTPS
  • 副本、基于请求的自动伸缩
  • 等等

FastAPI Cloud 是 FastAPI and friends 开源项目的主要赞助方与资金提供者。

部署到其他云服务商

FastAPI 是开源的,并基于标准。你可以将 FastAPI 应用部署到你选择的任意云服务商。

按照你所选云服务商的指南部署 FastAPI 应用即可。🤓

部署到你自己的服务器

在后面的部署指南中,我也会讲解所有细节,帮助你理解幕后发生了什么、需要做什么,以及如何自行部署 FastAPI 应用,包括部署到你自己的服务器。🤓