Skip to content

Commit 986b7c6

Browse files
authored
Merge pull request #1 from allhaile/add-deploy-to-heroku
Adding app.json, Procfile and button to readme for `Heroku deploy` button
2 parents 37ef805 + c08cac5 commit 986b7c6

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker: python app.py

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This is a generic Bolt for Python template app used to build out Slack apps.
55
Before getting started, make sure you have a development workspace where you have permissions to install apps. If you don’t have one setup, go ahead and [create one](https://slack.com/create).
66
## Installation
77

8+
# Deploy to Heroku
9+
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/allhaile/bolt-python-starter-template)
10+
11+
812
#### Create a Slack App
913
1. Open [https://api.slack.com/apps/new](https://api.slack.com/apps/new) and choose "From an app manifest"
1014
2. Choose the workspace you want to install the application to

app.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Bolt for Python Starter App (Socket Mode)",
3+
"description": "A Slack app using Bolt for Python with Socket Mode",
4+
"env": {
5+
"SLACK_BOT_TOKEN": {
6+
"description": "Your bot token (starts with xoxb-)",
7+
"required": true
8+
},
9+
"SLACK_APP_TOKEN": {
10+
"description": "Your app-level token (starts with xapp-)",
11+
"required": true
12+
}
13+
},
14+
"scripts": {
15+
"postdeploy": "echo 'Your Bolt for Python Socket Mode app was deployed!'"
16+
},
17+
"addons": [],
18+
"buildpacks": [
19+
{
20+
"url": "heroku/python"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)