git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
LuckyHJH
V2EX  ›  git

大家是怎么管理配置文件的?

  •  
  •   LuckyHJH · Jul 14, 2015 · 3819 views
    This topic created in 4136 days ago, the information mentioned may be changed or developed.

    缓存目录和上传目录就肯定是ignore的,但是配置目录怎么处理?不ignore的话,每个开发者的环境不一样,导致配置文件不统一。ignore的话,新的开发者clone下来后又无法跑起来。我是个PHPer,请教各位V友。

    2 replies  •  2015-07-14 14:21:17 +08:00
    dorentus
    dorentus
    Jul 14, 2015
    1
    saber000
    saber000
    Jul 14, 2015
    2
    我的程序会按照以下顺序找配置文件:/etc/config/xxx.cfg -> ~/config/xxx.cfg -> ./config/xxx.cfg
    分别对应prod env -> dev env -> demo env
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 10:22 · PVG 18:22 · LAX 02:22 · JFK 05:22
    ♥ Do have faith in what you're doing.