forked from mirrors/probot
remove manual base64 encoding/decoding of private key (#717)
This commit is contained in:
parent
8663f1b8e6
commit
3bee037014
|
@ -113,16 +113,12 @@ Zeit [Now](http://zeit.co/now) is a great service for running Probot apps. After
|
|||
|
||||
1. Clone the app that you want to deploy. e.g. `git clone https://github.com/probot/stale`
|
||||
|
||||
1. Add a `now-start` script to `package.json` as follows:
|
||||
|
||||
"now-start": "PRIVATE_KEY=$(echo $PRIVATE_KEY_BASE64 | base64 -d) npm start"
|
||||
|
||||
1. Run `now` to deploy, replacing the `APP_ID` and `WEBHOOK_SECRET` with the values for those variables, and setting the `PRIVATE_KEY_BASE64`:
|
||||
1. Run `now` to deploy, replacing the `APP_ID` and `WEBHOOK_SECRET` with the values for those variables, and setting the `PRIVATE_KEY`:
|
||||
|
||||
$ now -e APP_ID=aaa \
|
||||
-e WEBHOOK_SECRET=bbb \
|
||||
-e NODE_ENV=production \
|
||||
-e PRIVATE_KEY_BASE64="$(cat ~/Downloads/*.private-key.pem | base64)"
|
||||
-e PRIVATE_KEY="$(cat ~/Downloads/*.private-key.pem | base64)"
|
||||
|
||||
**NOTE**: Add `-e LOG_LEVEL=trace` to get verbose logging, or add `-e LOG_LEVEL=info` instead to show less details.
|
||||
|
||||
|
|
Loading…
Reference in New Issue