I have an app running on heroku, which I versioning on github too. But there are some files that I don’t need to put on github (s3 configuration, mongoid configuration, etc), but I do need them on heroku.
How do I ignore these files only on github but do not ignore on heroku (without have to use another branch)?
I have an app running on heroku, which I versioning on github too. But
Share
Is this file containing API keys? In this case you can use Heroku’s environment variables, it’s the best practice I know to secure your API keys.