2 months ago


Posted 2 months ago by kitman


I want to ask how do people deploy there .env files on production server

  1. using ci/cd tool to cpy .env.example .env
  2. devops login the server and manual copy and rename form .env.example to .env
  3. Others ways

If using the 1 way it will have security issues because we are uploading to DB password and stuff to git, how to solve that problem.

If using the 2 way does that mean as a programmer everytime I create add/change a new variable(eg: third party api link) I have to tell the devops to add one on the production server, and also if I have multiple servers then I have to manual do it couple times which does not make much sense plus if the programmer forgot to tell the devops about it will create a problem as well ?

Please sign in or create an account to participate in this conversation.