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..854df2f 100644 --- a/README.md +++ b/README.md @@ -24,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 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" + } + ] +}