Skip to content

Commit

Permalink
Merge pull request #8 from cloudflare/update-deployment-instructions
Browse files Browse the repository at this point in the history
Update deployment instructions
  • Loading branch information
third774 authored Mar 26, 2024
2 parents 702255a + 485b5d7 commit b194a69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
1 change: 0 additions & 1 deletion app/types/Env.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export type Env = {
USER_DIRECTORY_URL?: string
ACCOUNT_ID: string
FEEDBACK_URL?: string
FEEDBACK_QUEUE?: Queue
CALLS_APP_ID: string
Expand Down
1 change: 0 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ main = "./build/index.js"

[vars]
CALLS_APP_ID = "f0ea263009299383d09d44b9fad5316c"
ACCOUNT_ID = "8477399eb04accc1792af96aeaa25222"

[[queues.producers]]
queue = "orange-meets-feedback-queue"
Expand Down

0 comments on commit b194a69

Please sign in to comment.