Same add-on for multiple Heroku apps

What are the best practices with Heroku Supplements? I manage several Heroku applications. I want them to have a general supplement. how to do it?

For example, I first signed up for Mandrill on my website. When I added Mandrill add-ons to Heroku, they created a new Mandril account for me. I wanted to merge them, but Mandril support said they could not merge accounts!

In another example, I added the addition of Logentries to one Heroku application. Logentries account created. Then I added another Logentries add-on to another Heroku app, then another Logentries account was created.

It is getting dirty. Am I doing it right? How to make multiple Heroku apps available for one account?

+4
source share
3 answers

Yes, you are doing everything right. Each Heroku application is a separate instance and will have its own add-ons. As far as I know, there is no way to share add-ons through several Heroku applications.

+1
source

It is possible to share add-ons between applications. After adding the add-in to one of the applications, an environment variable will be created containing the account information. You can copy the variable to other applications, and they will start using the same third-party resource. The add-on will remain in the list only in the first application where it was originally added, but this will not prevent other applications from using it.

+5

Heroku. , .

, Logentries Logentries, Heroku Logentries syslog.

https://logentries.com/doc/heroku/ (. ": syslog Logentries" )

To configure syslog drainage, you need to create a new log in the Logentries interface with the source type "Syslog TCP, UDP" (select "Hosts", then click in the upper right corner). Logentries will assign you a PORT port number and set the log search mode according to your source log.

Then let Heroku know where to send you journal entries. Add Heroku syslog and point it to api.logentries.com:PORT:

heroku drains: add syslog: //api.logentries.com: PORT

+3
source

Source: https://habr.com/ru/post/1529533/


All Articles