Skip to content

Commit

Permalink
[slackapi#220] Move getting and preparing an app to the top sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbrooks committed Sep 18, 2020
1 parent 1af7f94 commit 321fbaa
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions docs/_deployments/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,39 @@ redirect_from:
# Deploying to Heroku

<div class="section-content">
This guide is meant to walk you through preparing and deploying a Slack app using Bolt for JavaScript to the [Heroku cloud platform](https://heroku.com/). Along the way, we’ll download the [Getting Started app](/bolt-js/tutorials/getting-started), prepare it for Heroku, create a Heroku instance, and deploy the app.
This guide is meant to walk you through preparing and deploying a Slack app using [Bolt for JavaScript](/bolt-js) to the [Heroku cloud platform](https://heroku.com/). Along the way, we’ll download the [Getting Started app](/bolt-js/tutorials/getting-started), prepare it for Heroku, create a Heroku instance, and deploy the app.
</div>

---

### Get a Bolt Slack app

Let's get started! We're going to use the app that you created in the [Getting Started](/bolt-js/tutorials/getting_started) to learn how to prepare and deploy an app to Heroku.

Let's start by getting a fresh copy of the _Getting Started_ app:

```shell
git clone https://github.com/mwbrooks/bolt-js-getting-started-app.git
cd bolt-js-getting-started-app/
```

> 💡 If you have an existing Bolt Slack app that you want to deploy, you can also follow along as well.
Perfect! Now that we have the app, let's move onto preparing it for Heroku.

---

### Prepare the app for Heroku

Heroku is a flexible platform that uses a few conventions to understand how to host your app.

- Track your app in a Git repository `<details>`
- Add a Heroku Git remote
- Add a Procfile
- Existing apps should review https://devcenter.heroku.com/articles/preparing-a-codebase-for-heroku-deployment

---

### Setup the Heroku tools

First off, you will want to setup the Heroku tools on your local machine. This will help you manage, deploy, and debug your app on the Heroku platform.
Expand Down Expand Up @@ -65,34 +93,6 @@ When the app is created, Heroku will also create a git remote repository.

---

### Get the Bolt Slack app

We're going to use the app that you created in the [Getting Started](/bolt-js/tutorials/getting_started) to learn how to prepare and deploy an app to Heroku.

> 💡 If you have an existing Bolt Slack app that you want to deploy, you should be able to follow along as well.
Let's start by getting a fresh copy of the _Getting Started_ app:

```shell
git clone https://github.com/mwbrooks/bolt-js-getting-started-app.git
cd bolt-js-getting-started-app/
```

Perfect! Now that we have the app, let's move onto preparing it for Heroku.

---

### Prepare the app for Heroku

Heroku is a flexible platform that uses a few conventions to understand how to host your app.

- Track your app in a Git repository `<details>`
- Add a Heroku Git remote
- Add a Procfile
- Existing apps should review https://devcenter.heroku.com/articles/preparing-a-codebase-for-heroku-deployment

---

### Deploy the app

- `heroku ps:scale web=1`
Expand Down

0 comments on commit 321fbaa

Please sign in to comment.