How to stop Heroku CLI automatically logging me out? - heroku

After running heroku login on my work account, and putting work away for the weekend, each Monday I am told that I must log in again when running heroku commands.
This doesn't seem to happen for anybody else at the office, and nobody knows quite how or why. The Heroku documentation doesn't appear to be very helpful on the matter.
Does anybody know how I can stay logged in until I explicitly type heroku logout?

Related

Heroku Bot Stops after 24 hours

I have a small Discord.js reactions bot that gives roles to the members. It runs fine for 24 hours then it stops... if I refresh the bot with a code it starts working again.
It’s very annoying as I want it to run all the time and not require me to log on every day to manually refresh it.
It is hosted with Heroku if that helps.
Heroku dynos restart one or few times in a day, that's how Heroku's free hosting works. If you lose your reactions use Data base as jonrsharpe said. The easiest to use is MongoDB and there is a lot of tutorials on how to make a reaction role system with it, hope my answer helped!

Why is Heroku raising this unusual error?

I made a Reaction Role Bot (Discord.py) a week ago, and when I'm hosting the Bot on my own PC everything is working perfectly fine. But when I#m pushing the File in Heroku and try to run it there, there are many Errors like this: https://gyazo.com/d40c7051aa7037a31101d51443314c90
I really don't know why there is an Error, because i changed absolutely nothing on the File.
Is there someone who maybe know why this happens and how i can get rid of this error?
It is likely Heroku pulled discord.py 1.5, and you are running an older version on your local machine. v1.5 introduced support for gateway intents, see this page on how to update your bot code to work with them.

Access to heroku logs without access to app itself

Say, i have a team of developers. I want them to have access to production logs, but nothing else. Preferably they shouldn't even know the heroku's internal app name.
How do i do that?
I don't think it's possible (at the moment) with Heroku command line. You have two options:
Use one of the logging addons and give your teammates access to the logging app only
Write yourself a log drain for Heroku logplex route the logs to AWS S3, your own DB or other, then give your teammates some way to view the logs.

Heroku postgres maintenance required alert, what to do?

I can see an alert on the heroku postgres console, see attached image.
It's not clear to me if I have to take some action to enable this maintenance or if this is something heroku will take care of. And it isn't clear neither where to look for help on this topic.
Do I have to worry about something?
You should have received an e-mail with more details (to the address associated with your account). We've added a FAQ with some clarifications. If you still have more questions, feel free to reach out to us via help.heroku.com.
Thanks,
Maciek
Heroku Postgres

How To Clear Heroku logs

There is another question here with the same topic but has not been answered properly, that's why I'm asking it again, the information in the answer is old and innacurate.
For example, heroku restart will not clear the logs and when running in Production mode it's not something you can do.
Is there any way to clear them at all?
Clearing the logs is not functionality that Heroku provide.

Resources