I want to run a Discord bot of mine on Heroku, however i am scared that through missunderstanding how it works i will accidently make my API keys publicly visible. Is there a best practice solution that i could follow here?
This is what i would try:
- Clone the git repo (the code there obviously having the API keys removed)
- Manually add the keys without commiting the changes
- Pushing the code with the keys to the heroku remote master
However i am not 100% sure if pushing the code with the keys to a remote master will be something that others could see, so i would rather be safe than sorry.