东道主主

概览

一个主机: 部署到它, 滚回它, 附加一个域, 读取它正在使用的东西 。

7 methodsdomainsslug is fixed
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

成员功能
(选项)在线放文件或代码
更新({ 标签} )重命名它——仅标注标签。
部署()历史
滚回( 部署)更早地将部署重新投入网络
(使用)使用什么。
删除( m)删除。
域域域域attach · list · detach.
const site = await api.hosts.get(id);

await site.deploy({ files: "./out" });
await site.domains.attach("www.example.com");
site = api.hosts.get(host_id)

site.deploy(files="./out")
site.domains.attach("www.example.com")

子弹不能改变

改变它会打破共同的联系、所附域和证书—— update() 仅修改标签,而另一个地址则指另一个主机。

部署不是建筑

构建代码所在的位置; 将结果发送到这里。 源文件夹上的部署指向发布源代码, 成功地公布了源代码, 这使得值得两次声明。