Skip to content

Commit

Permalink
fix: add env param
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Feb 29, 2024
1 parent 54c29c8 commit b5fd06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ Organization permissions:

4. To create a KV namespace run `npx wrangler kv:namespace create PLUGIN_CHAIN_STATE`. Copy the ID to `wrangler.toml` under `[env.dev]`.

5. You can add (env) secrets using `npx wrangler secret put <KEY>`. To add private key run: (replace YOUR_PRIVATE_KEY.PEM with the path to your actual PEM file)
5. You can add (env) secrets using `npx wrangler secret put <KEY> --env dev`. To add private key run: (replace YOUR_PRIVATE_KEY.PEM with the path to your actual PEM file)

```sh
echo $(openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in YOUR_PRIVATE_KEY.PEM) | npx wrangler secret put PRIVATE_KEY
echo $(openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in YOUR_PRIVATE_KEY.PEM) | npx wrangler secret put PRIVATE_KEY --env dev
```

6. To deploy the kernel run `bun run deploy-dev`.

0 comments on commit b5fd06d

Please sign in to comment.