I have a project that use Twitter authentication. So that means, the project have API keys which are supposed to remain private. I wanna make it open source so thats why I have to trim all the API keys before git push. For 2 days now, I've been doing it manually. This is a very tiresome process.
Now, I'm thinking that sftp-ing the files to the live server is also tiresome and I should just set up a webhook on the live server and let it pull all the changes.
But, the git version would have all the API keys trimmed. So the live site won't work. I need some ideas on how do I get around this that is..
-> remove auth keys before pushing to git
-> put keys back in when pulling on live server