🎥 Make videos programmatically with React
simplify
Jonny Burgerdba69ef71bb1
diff --git a/packages/docs/docs/cloudrun/generateEnvFile.md b/packages/docs/docs/cloudrun/generate-env.mdsimilarity index 78%rename from packages/docs/docs/cloudrun/generateEnvFile.mdrename to packages/docs/docs/cloudrun/generate-env.mdindex 3b066366d5..ff1572bb51 100644--- a/packages/docs/docs/cloudrun/generateEnvFile.md+++ b/packages/docs/docs/cloudrun/generate-env.md@@ -1,8 +1,7 @@---image: /generated/articles-docs-cloudrun-generateEnvFile.png-id: generateEnvFile+id: generate-envtitle: Generate .env File-slug: /cloudrun/generateEnvFilecrumb: "Cloudrun"---@@ -32,24 +31,16 @@ GCP allows a maximum of 10 keys per service account. If you have already created<!-- ToDo - host this in the official Remotion repo -->-4. Download the .env file by clicking the vertical ellipsis, in the top right of the cloud shell window, and selecting Download. Then type .env at the end of the prefilled path, and click DOWNLOAD;- <img src="/img/cloudrun/downloadEnv.jpg" width="350" />- <br />- <br />- <img src="/img/cloudrun/downloadEnvFolder.png" width="300" />--5. Remove the .env file from the virtual machine, using this command;+4. Run the following command to view the environment variables. Copy them into your local `.env` file (create it if it doesn't exist):```bash- rm .env+ cat .env```-6. Place the downloaded .env file into the root of the Remotion project. You may need to rename it from `env.txt`, to `.env`. The file should have this format;+5. Remove the .env file from the virtual machine, using this command:- ```txt title=".env"- REMOTION_GCP_PRIVATE_KEY=<private key>- REMOTION_GCP_CLIENT_EMAIL=<client email>- REMOTION_GCP_PROJECT_ID=<project id>+ ```bash+ rm .env```## 5. Optional: Validate the permission setupdiff --git a/packages/docs/docs/cloudrun/setup.md b/packages/docs/docs/cloudrun/setup.mdindex 17de407faa..cb00f662e3 100644--- a/packages/docs/docs/cloudrun/setup.md+++ b/packages/docs/docs/cloudrun/setup.md@@ -86,8 +86,6 @@ This means that you can pull in a script that runs a couple of gcloud and Terraf<img src="/img/cloudrun/selectCloudShell.jpg" width="200" />-// TODO: Cannot do relative links in Docusaurus-2. Within the Cloud Shell, type the following command and follow the prompts.// TODO: Switch to remotion-dev repo@@ -95,32 +93,19 @@ This means that you can pull in a script that runs a couple of gcloud and Terrafcurl -L https://github.com/UmungoBungo/remotion/raw/gcp-lambda-alternative/packages/cloudrun/gcpInstaller/gcpInstaller.tar | tar -x --strip-components=1 -C . && node install.mjs```- _The first command downloads a tar file from the Remotion repo, and extracts it to the current directory. The second command runs the installer script._-- If this is the first time initialising Remotion in the GCP project, you will want to select option 1.- If you are updating the version of Remotion for this GCP project, you will want to select option 1.- If you want to [generate a new .env file](./generateEnvFile.md), or manage keys already created, you will want to select option 2. You will be presented with an opportunity to generate this file after completing option 1.--3. Download the .env file by clicking the vertical ellipsis, in the top right of the cloud shell window, and selecting Download. Then type .env at the end of the prefilled path, and click DOWNLOAD;- <img src="/img/cloudrun/downloadEnv.jpg" width="350" />- <br />- <br />- <img src="/img/cloudrun/downloadEnvFolder.png" width="300" />--// ToDo - host this in the official Remotion repo+- Select <Step>1</Step> if you are using Remotion Cloud Run for the first time in this GCP project or want to upgrade.+- Select <Step>2</Step> if you want to [generate a new .env file](/docs/cloudrun/generate-env), or manage keys already created.-4. Remove the .env file from the virtual machine, using this command;+4. Run the following command to view the environment variables. Copy them into your local `.env` file (create it if it doesn't exist):```bash- rm .env+ cat .env```-5. Place the downloaded .env file into the root of the Remotion project. You may need to rename it from `env.txt`, to `.env`. The file should have this format;+5. Remove the .env file from the virtual machine:- ```txt title=".env"- REMOTION_GCP_PRIVATE_KEY=<private key>- REMOTION_GCP_CLIENT_EMAIL=<client email>- REMOTION_GCP_PROJECT_ID=<project id>+ ```bash+ rm .env```## 5. Optional: Validate the permission setupdiff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 15f51ae90d..9d37a62f69 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -517,7 +517,7 @@ module.exports = {},items: ["cloudrun/setup",- "cloudrun/generateEnvFile",+ "cloudrun/generate-env","cloudrun/region-selection",],},diff --git a/packages/docs/static/img/cloudrun/downloadEnv.jpg b/packages/docs/static/img/cloudrun/downloadEnv.jpgdeleted file mode 100644index 8edb03b045..0000000000Binary files a/packages/docs/static/img/cloudrun/downloadEnv.jpg and /dev/null differdiff --git a/packages/docs/static/img/cloudrun/downloadEnvFolder.png b/packages/docs/static/img/cloudrun/downloadEnvFolder.pngdeleted file mode 100644index 7297e97e96..0000000000Binary files a/packages/docs/static/img/cloudrun/downloadEnvFolder.png and /dev/null differ