From 461461c747270d4422d5077a7d5e794fb40d6671 Mon Sep 17 00:00:00 2001 From: Kevin Kipp Date: Mon, 25 Mar 2024 23:35:08 -0500 Subject: [PATCH 1/2] Remove old unused ACCOUNT_ID variable --- app/types/Env.ts | 1 - wrangler.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/app/types/Env.ts b/app/types/Env.ts index 41d3de9b..03c4a954 100644 --- a/app/types/Env.ts +++ b/app/types/Env.ts @@ -1,6 +1,5 @@ export type Env = { USER_DIRECTORY_URL?: string - ACCOUNT_ID: string FEEDBACK_URL?: string FEEDBACK_QUEUE?: Queue CALLS_APP_ID: string diff --git a/wrangler.toml b/wrangler.toml index 8a62a490..b510ab92 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -13,7 +13,6 @@ main = "./build/index.js" [vars] CALLS_APP_ID = "f0ea263009299383d09d44b9fad5316c" -ACCOUNT_ID = "8477399eb04accc1792af96aeaa25222" [[queues.producers]] queue = "orange-meets-feedback-queue" From 485b5d73923d419e411d8eeae407d89f7893bb1e Mon Sep 17 00:00:00 2001 From: Kevin Kipp Date: Mon, 25 Mar 2024 23:54:59 -0500 Subject: [PATCH 2/2] Update deployment instructions --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 09cc1abf..5e430509 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,28 @@ Open up [http://127.0.0.1:8787](http://127.0.0.1:8787) and you should be ready t ## Deployment -First you will need to create the feedback queue: +1. Make sure you've installed `wrangler` and are logged in by running: ```sh -wrangler queues create orange-meets-feedback-queue +wrangler login ``` -Then you can run +2. Update the `account_id` and `CALLS_APP_ID` in `wrangler.toml` to use your own Cloudflare Account ID and Calls App ID + +3. You will also need to set the token as a secret by running: ```sh -npm run deploy +wrangler secret put CALLS_APP_SECRET ``` -You will also need to set the token as a secret by running: +4. Create the feedback queue: ```sh -wrangler secret put CALLS_APP_SECRET +wrangler queues create orange-meets-feedback-queue +``` + +5. Then you can run + +```sh +npm run deploy ```