A
A
anoninmer2019-12-13 19:54:01
Python
anoninmer, 2019-12-13 19:54:01

Script that heroku understands?

The task is this
. I have several identical python applications that I deploy to heroku from github.
These applications differ only in a couple of lines from each other (these are telegram bots, they differ literally in tokens)
I deploy them to different heroku accounts, changing these lines each time in the repository The
question is how to make the script run on one or another heroku account, understand where it is and accept the correct
token in script

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-12-13
@anoninmer

On your heroku account, in your application, set the environment variable to your token, and in the bot, set this environment for the token, and everything should be ok.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question