How to include file in heroku but not github How to include file in heroku but not github heroku heroku

How to include file in heroku but not github


You should use environment variables on Heroku. If you have a password, you can save it in a file like this (assuming your programming language is Python):

import os...PASSWORD = os.environ['PASSWORD']

Then, in the Heroku CLI you can run the following:

heroku config:set PASSWORD=mypassword1234

This way you don't have to store credentials in a file.