Luiz E.
Luiz E.

Reputation: 7249

ignore files in a specific repository

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)?

Upvotes: 1

Views: 149

Answers (1)

Nícolas Iensen
Nícolas Iensen

Reputation: 4379

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.

Upvotes: 1

Related Questions