Open Collective Bot is currently deployed with Vercel (v2). You will need to install Vercel CLI.
Authenticate with:
vercel login
Switch to the Open Collective team account:
now switch opencollective
Make sure that the following secrets are set (uses vercel secrets):
name (production) | name (staging) | description |
---|---|---|
oc-bot-app-id |
oc-bot-staging-app-id |
GitHub app id |
oc-bot-webhook-secret |
oc-bot-staging-webhook-secret |
GitHub webhook-secret |
oc-bot-private-key |
oc-bot-staging-private-key |
One of GitHub private keys, base64 encoded |
oc-bot-sentry-dsn |
oc-bot-staging-sentry-dsn |
Sentry DSN for error reporting |
Eg: vercel secrets add oc-bot-app-id {value}
npm run deploy:staging
npm run deploy:production
Open Collective Bot can also run in other environments like Heroku. In case you want to deploy there you must do the following steps:
You can follow the official documentation to install the command line tool.
heroku create
You must configure the environment variables using this command:
heroku config:set NAME=VALUE
The variables to be published are:
name | description |
---|---|
APP_ID |
GitHub app id |
WEBHOOK_SECRET |
GitHub webhook-secret |
PRIVATE_KEY |
One of GitHub private keys encoded in base64 |
SENTRY_DSN |
Sentry DSN for error reporting |
The contents of the private key for your GitHub App. If you're unable to use multiline environment variables, use base64 encoding to convert the key to a single line string.
heroku config:set PRIVATE_KEY="$(cat private-key.pem | base64)"
To deploy your app to Heroku, you typically use the git push
command to push the code from your local repository’s main branch to your heroku remote, like so:
git push heroku main