Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy the App to Heroku with one click #1384

Merged
merged 2 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "Deploying to Heroku ⚡️ Bolt for JavaScript",
"description": "This is a Slack app built with the Bolt for JavaScript framework that showcases deploying to the Heroku platform.",
"keywords": ["slack", "heroku", "nodejs", "bolt", "bolt-js", "javascript"],
"logo": "https://raw.githubusercontent.com/slackapi/bolt-js/main/docs/assets/bolt-logo.svg",
"image": "heroku/nodejs",
"website": "https://slack.dev/bolt-js/",
"repository": "https://github.com/slackapi/bolt-js",
"success_url": "/",
"env": {
"SLACK_SIGNING_SECRET": {
"description": "Slack creates a unique string for your app and shares it with you. Verify requests from Slack with confidence by verifying signatures using your signing secret. (begins with xoxb-)",
"value": "",
"required": true
},
"SLACK_BOT_TOKEN": {
"description": "Bot tokens represent a bot associated with the app installed in a workspace. Unlike user tokens, they're not tied to a user's identity; they're just tied to your app.",
"value": "",
"required": true
},
"APP_BASE": {
"description": "Do not change. Used by heroku-buildpack-monorepo",
"value": "examples/deploy-heroku",
"required": false
}
},
"formation": {
"web": {
"quantity": 1,
"size": "free"
}
},
"buildpacks": [
{
"url": "https://github.com/lstoll/heroku-buildpack-monorepo"
},
{
"url": "heroku/nodejs"
}
]
}
4 changes: 4 additions & 0 deletions examples/deploy-heroku/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ heroku ps:scale web=1
2. Follow the [Deploying to Heroku with Bolt for JavaScript][1] guide to:
- Update your **Request URL** for actions and events

### 6. Bonus: Deploy to Heroku with one click

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/slackapi/bolt-js)

[1]: https://slack.dev/bolt-js/deployments/heroku
[2]: https://slack.dev/bolt-js/
[3]: https://heroku.com/
Expand Down