Skip to content

Latest commit

 

History

History

deploy-heroku

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Deploying to Heroku ⚡️ Bolt for JavaScript

Slack app example from 📚 Deploying to Heroku with Bolt for JavaScript

Overview

This is a Slack app built with the Bolt for JavaScript framework that showcases deploying to the Heroku platform.

Deploy to Heroku

1. Initialize a Git repository

# Initialize Git repository
git init

# Commit this project
git add .
git commit -am "Initial commit"

# Rename master to main (optional)
git branch -m main

2. Create a Heroku app

heroku create

3. Set Heroku environment variables

heroku config:set SLACK_SIGNING_SECRET=<your-signing-secret>
heroku config:set SLACK_BOT_TOKEN=xoxb-<your-bot-token>

4. Deploy to Heroku

# Deploy to Heroku
git push heroku main

# Start web server on Heroku
heroku ps:scale web=1

5. Create Slack App

  1. Follow the Getting Started with Bolt for JavaScript guide to:
    • Create a Slack app
    • Add required scopes
    • Subscribe to required events
  2. Follow the Deploying to Heroku with Bolt for JavaScript guide to:
    • Update your Request URL for actions and events

6. Bonus: Deploy to Heroku with one click

Deploy