0

I am using Heroku to host my web server. Is my source code there available or open to others as there are some private information in my source codes? If it is, how can I prevent that? I looked at some questions before, but it wasn't clear.

이기름
  • 157
  • 1
  • 1
  • 9

1 Answers1

1

Your code pushed to Heroku stays private, however it is a bad idea to store sensitive data (tokens, passwords, IDs) in the source code.

Heroku best practises is to use Config Var to define secrets, these are injected into your application at runtime as environment variables (which you can access programatically - depending which language you use)

Beppe C
  • 11,256
  • 2
  • 19
  • 41