Skip to content

Commit 79fbdeb

Browse files
schlagelkhubwriter
andauthored
Fix .env examples for PRIVATE_KEY -> GITHUB_PRIVATE_KEY variables (#4305)
This fixes naming for a couple of variables in the `.env` examples in this document. Currently there are examples which suggest naming the private key variable `PRIVATE_KEY`, when really it should be `GITHUB_PRIVATE_KEY`. When following along in the example and attempting to run the server, using the incorrect name in the `.env` file leads to an error. Co-authored-by: hubwriter <hubwriter@github.com>
1 parent ab29ec7 commit 79fbdeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/developers/apps/setting-up-your-development-environment-to-create-a-github-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ You need to add these variables to the `.env` file:
151151
Here is an example `.env` file:
152152
153153
```
154-
PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
154+
GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
155155
...
156156
HkVN9...
157157
...
@@ -402,7 +402,7 @@ Here are a few common problems and some suggested solutions. If you run into any
402402
**A:** You probably haven't set up your private key environment variable quite right. Your `GITHUB_PRIVATE_KEY` variable should look like this:
403403
404404
```
405-
PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
405+
GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
406406
...
407407
HkVN9...
408408
...

0 commit comments

Comments
 (0)