Should server/database config files, including passwords, be stored in source control?

前端 未结 12 1395
野性不改
野性不改 2020-11-29 00:39

I\'m looking to hear some best practices...

Assuming a web application that interacts with a few different production servers (databases, etc.)... should the configu

12条回答
  •  孤街浪徒
    2020-11-29 00:43

    Sample configurations file, sure, I would put them under version control. But usually not with realworld access data such as server addresses or passwords. More somethinglike

    # program.conf
    #
    # mysql option for $myprog.
    #
    #SERVER_ADDR=127.0.0.1
    #SERVER_USER=mysql
    #SERVER_PASSWD=abcdef
    

提交回复
热议问题