Reputation: 4649
I'm currently using github.com to push and deploy my files. One of these files contains a username and password for an API on a website. Is there a way to upload files to openshift without publicly exposing saved authentication credentials on github? To be more specific, I have a config.js file that has a username and a password and I don't want that to be stored on github, but used on openshift. Do I need to make a database instead?
Is there a better way to deploy node.js apps? I don't have money to spend.
Upvotes: 1
Views: 585
Reputation: 7613
I use winscp to log into my app. Using winscp I then copy my config.ini file which contains my secret stuff than I don't want on github to the Openshift data directory. From there my app just loads that file and retrieves the necessary information.
Upvotes: 1