Skip to main content

npx remotion cloudrun sites create

EXPERIMENTAL
npx remotion cloudrun sites create <entry-point>?

你可以将一个入口点作为第一个参数传入,否则入口点将会被确定

🌐 You may pass an entry point as the first argument, otherwise the entry point will be determined.

将 Remotion 视频打包并上传到云存储桶。

🌐 Bundle and upload a Remotion video to a Cloud Storage bucket.

结果将是一个像 https://storage.googleapis.com/remotioncloudrun-12345/sites/mySite123/index.html 这样的网址。

🌐 The result will be a URL such as https://storage.googleapis.com/remotioncloudrun-12345/sites/mySite123/index.html.

note

如果你在本地进行了更改,你需要重新部署网站。使用 --site-name 来覆盖现有网站。

你可以使用这个 “Serve URL” 在 Remotion Cloud Run 上渲染视频,使用方式如下:

🌐 You can use this "Serve URL" to render a video on Remotion Cloud Run using:

如果你在 Cloud Run 上进行渲染,你也可以将站点名称(在此情况下为 mySite123)作为缩写传递。

🌐 If you are rendering on Cloud Run, you can also pass the site Name (in this case mySite123) as an abbreviation.

--region

要选择的 GCP 区域。访问该站点的服务也应位于同一地区以最小化延迟。

🌐 The GCP region to select. The service accessing the site should also be in this same region to minimise latency.

--site-name

将项目上传到特定目录并返回一个确定性的 URL。如果同一地区已经存在该名称的网站,它将被覆盖。只能包含以下字符:0-9a-zA-Z-!_.*'()

🌐 Uploads the project to a specific directory and returns a deterministic URL. If a site already existed under this name, in the same region, it will be overwritten. Can only contain the following characters: 0-9, a-z, A-Z, -, !, _, ., *, ', (, )

npx remotion cloudrun sites create src/index.ts --site-name=another-site

--disable-git-sourcev4.0.182

Disables the Git Source being connected to the Remotion Studio. Clicking on stack traces and certain menu items will be disabled.

另请参阅

🌐 See also