Skip to content
Closed
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
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: python app.py
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ export SLACK_BOT_TOKEN=<your-bot-token>
export SLACK_APP_TOKEN=<your-app-token>
```

## Heroku Deployment
Use the `Deploy to Heroku` button below to launch this app on Heroku. Ensure your Heroku config vars include the required Slack env variables.
<!--
NOTE: This Deploy to Heroku button currently points to my personal fork
to allow testing of the latest changes.
Before merging this PR, be sure to update the URL to point to the
official Slack bolt-python-starter-template repository (https://github.com/slack-samples/bolt-python-starter-template).
-->
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/allhaile/bolt-python-starter-template)

### Setup Your Local Project
```zsh
# Clone this project onto your machine
Expand Down
23 changes: 23 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Bolt for Python Starter App (Socket Mode)",
"description": "A Slack app using Bolt for Python with Socket Mode",
"env": {
"SLACK_BOT_TOKEN": {
"description": "Your bot token (starts with xoxb-)",
"required": true
},
"SLACK_APP_TOKEN": {
"description": "Your app-level token (starts with xapp-)",
"required": true
}
},
"scripts": {
"postdeploy": "echo 'Your Bolt for Python Socket Mode app was deployed!'"
},
"addons": [],
"buildpacks": [
{
"url": "heroku/python"
}
]
}