I set up a Heroku node webapp that's connected to a github repository. The repository holds a config.js.example
file for the database login information. The idea is to create a unique config.js
file for every deploy.
How do I do that on the Heroku platform?I went into the console, and created that file, but any time I redeploy code changes from the github repository, or even every time I trigger "restart all dynos" the folder is wiped of all files that don't belong to the github repository. And the config.js
file is gone, and my app won't start without it.
I saw Heroku has a different way of storing config variables on their settings page, but I don't want to have to rebuild the node app, unless really necessary.
Isn't there a way to protect files from being wiped?