From c08cac50da6e5d3913b06ec4604c7036a0ba4124 Mon Sep 17 00:00:00 2001 From: Haile Shavers Date: Thu, 26 Jun 2025 09:16:40 -0700 Subject: [PATCH 1/3] adding app.json, procfile and button to readme. --- Procfile | 1 + README.md | 4 ++++ app.json | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 Procfile create mode 100644 app.json diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..4fe0c8f --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +worker: python app.py diff --git a/README.md b/README.md index c8c7680..2be6dff 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ This is a generic Bolt for Python template app used to build out Slack apps. 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). ## Installation +# Deploy to Heroku +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/allhaile/bolt-python-starter-template) + + #### Create a Slack App 1. Open [https://api.slack.com/apps/new](https://api.slack.com/apps/new) and choose "From an app manifest" 2. Choose the workspace you want to install the application to diff --git a/app.json b/app.json new file mode 100644 index 0000000..4620541 --- /dev/null +++ b/app.json @@ -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" + } + ] +} From c95e1300ed175fefdf79193a1e131bd3fff68e42 Mon Sep 17 00:00:00 2001 From: Haile Shavers Date: Thu, 26 Jun 2025 10:36:17 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2be6dff..60329dc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ Before getting started, make sure you have a development workspace where you hav ## Installation # Deploy to Heroku -[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/allhaile/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) + #### Create a Slack App From ecff81663d31fe7ba4fb0c5016a1d9fcd54c0354 Mon Sep 17 00:00:00 2001 From: Haile Shavers Date: Thu, 26 Jun 2025 14:51:31 -0700 Subject: [PATCH 3/3] Update README.md Moved heroku button around the ReadME --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 60329dc..854df2f 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,6 @@ This is a generic Bolt for Python template app used to build out Slack apps. 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). ## Installation -# Deploy to Heroku -[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/allhaile/bolt-python-starter-template) - - - #### Create a Slack App 1. Open [https://api.slack.com/apps/new](https://api.slack.com/apps/new) and choose "From an app manifest" 2. Choose the workspace you want to install the application to @@ -29,6 +24,16 @@ export SLACK_BOT_TOKEN= export SLACK_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. + +[![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