Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Use environment variables in your code and set those values in heroku. NEVER save credentials in your version control!
And don't hardcode configuration, environment variables fix that too <3 -
@alexbrooklyn Also, what about the credentials that has already been pushed to Github? Do I have to take down the whole repository or can I remove the earlier commits?
-
@devAstated consider them compromised, you could delete the history but you might as well remake the repo
Change your passwords ;) -
Go to settings tab in heroku and set your environment variables to your sensitive data. After that, just
@lmgtfy php read envvars -
Actually, talking bout MacBook, I would like to say that recently I had some problems with bluetooth. So if someone knows how to fix it, I'll be glad for some recommendations!
Related Rants
Hi, so I am fairly new to GitHub and I just wanted to know how do you publish your code on GitHub Public Repo without disclosing your sensetive credentials like DB hostname, username and password, and other keys like Recaptcha secret?
My GitHub repo is connected to Heroku hosting so I cannot replace the keys with something dummy. It will fuck the production deployment up.
question
github
security