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.
#
๐๏ธ PreparationMake sure that you ...
- have an account on Heroku.
- have access to a Hobby Dyno, because "always-on" is required for this use case.
- have
.env
file from these steps and a database
#
๐ง Heroku is just a click awayClick here:
- Give your application a fancy name and choose your region
- Give it a name and fill all empty environment variables with the values of your
.env
file. - Make sure that the
MONGO_HOST
value end on &ssl=true - 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 logsSometimes 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:
- Open https://dashboard.heroku.com/apps/ and select the Notification Service, you deployed.
- In the upper right corner, click on More and then on View logs
Now you can access all logs of the notification service.