Skip to main content
Version: 2.0.0

๐Ÿš€ Deploy to Heroku

This article will help you to deploy your notification service to Heroku. Make sure you to follow the instructions step by step.

tip

Student discount is available with the GitHub education pack. Click here for more information.

๐Ÿ—๏ธ Preparation#

Make sure that you ...

  1. have an account on Heroku.
  2. have access to a Hobby Dyno, because "always-on" is required for this use case.
  3. have .env file from these steps and a database

๐Ÿงš Heroku is just a click away#

Click here:

Deploy

  1. Give your application a fancy name and choose your region
  2. Give it a name and fill all empty environment variables with the values of your .env file.
  3. Make sure that the MONGO_HOST value end on &ssl=true
  4. Click Deploy App and see the magic happen ๐Ÿ”ฎโœจ

โœ… Yeah!#

You have successfully deployed your own notification service to Heroku! Within the logs you can find the registration token and url to access the admin panel.

Make sure to convert your maybe free dyno to a hobby dyno with always-on enabled.

๐Ÿ“œ Access logs#

Sometimes it is required to open the logs e.g for the initial registration. Follow the steps below to access the logs of your service deployed on Heroku:

  1. Open https://dashboard.heroku.com/apps/ and select the Notification Service, you deployed.
  2. In the upper right corner, click on More and then on View logs

Now you can access all logs of the notification service.