Skip to content

Commit

Permalink
Merge pull request #2 from shaydewael/patch-1
Browse files Browse the repository at this point in the history
Update Hosting_on_Heroku.md
  • Loading branch information
jcheonsa authored Jun 8, 2022
2 parents fd86182 + e57cc10 commit 56b09c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/tutorials/Hosting_on_Heroku.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hosting Heroku-Baker
# Hosting on Heroku

Running your app locally can be helpful for development but once it's is ready for production, you should consider using a hosting provider. This tutorial guides you through deploying, managing, and monitoring a Discord app on [Heroku](https://www.heroku.com/).

Expand All @@ -13,6 +13,8 @@ The app we're building bakes bread (with varying degrees of success) through a D
- [Discord.JS v13](https://discord.js.org/#/)
- [Heroku](https://www.heroku.com/)

---

### Project structure

```
Expand Down Expand Up @@ -124,7 +126,7 @@ Click **Connect this app to GitHub**.
From there, you will be able to manage the app's deployment method:

![img](heroku-deploy.png)
![Heroku deployment](heroku-deploy.png)

Selecting a branch and enabling **Automatic Deploys** for your app will deploy a new version of this app every time a push occurs. **Manual Deploys** would require you to select a specific branch before updates go live for your bot.

Expand All @@ -137,7 +139,7 @@ Before your app can go online, you'll have to configure your Heroku environment

Config variables allow you to set environment-specific variables and configurations for the app. These will persist throughout the different guilds your bot is operating in, and make it so you won’t need to store these variables in source code. Additionally, all config vars are encrypted. With that said, add your bot’s `TOKEN` and any other tokens or API keys it may require to operate properly to the list of config vars.

![Configuring your](heroku-configVars.png)
![Configuring variables in Heroku](heroku-configVars.png)

You'll notice that there isn't anything you have to change in your source code. Amazin'

Expand All @@ -159,4 +161,4 @@ Just toggle the dyno on and the script in Procfile (node index.js) will run on s

Status and updates for the dyno, any deploys as well as specific logs from your bot will be available in the **View Logs** tab. if a shard ever goes off or your bot crashes, the app will automatically restart. These events will also be [logged](https://devcenter.heroku.com/articles/logging).

![Dyno configuration](heroku-dynos.png)
![Dyno configuration](heroku-dynos.png)

0 comments on commit 56b09c1

Please sign in to comment.