I am hosting my Spring boot application on Heroku using git deploy. I have a public git repository and have added my application.properties file to the .gitignore as it contains sensitive details such as an api key and database credentials.
What is the best way of handling this situation, am I able to upload the single application.properties file myself directly to Heroku? I don't want to use the Heroku config vars as I would rather stay platform independent.