To deploy to staging or production, you need to be a core member of the Open Collective team.
npm install -g heroku
heroku login
Setting a Slack token will post a message on #engineering
with the changes you're
about to deploy. It is not required, but you can activate it like this:
- Go to https://api.slack.com/custom-integrations/legacy-tokens
- Generate a token for the OpenCollective workspace
- Add this token to your
.env
file:
OC_SLACK_DEPLOY_WEBHOOK=https://hooks.slack.com/services/....
# Before first deployment, configure staging remote
git remote add staging https://git.heroku.com/oc-staging-frontend.git
# Then deploy main with
npm run deploy:staging
URL: https://staging.opencollective.com/
# Before first deployment, configure production remote
git remote add production https://git.heroku.com/oc-prod-frontend.git
# Then deploy main with
npm run deploy:production