I'm currently using Heroku to run my web application. It is currently closed source, but I'd like to make it open source. I was wondering how I could push my local machine code to Heroku before I commit it to github (or for it to still read the files of my Gitignore) as I have all my database login details, private keys, etc. inside certain files which my application requires to run.
I haven't really found any solution yet.