What's the best practice for handling system-specific information under version control?

后端 未结 6 1641
情书的邮戳
情书的邮戳 2021-01-05 11:26

I\'m new to version control, so I apologize if there is a well-known solution to this. For this problem in particular, I\'m using git, but I\'m curious about how to deal wit

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 11:43

    I like the way Ruby on Rails deals with this sort of issue - environment-specific configuration files. Rails supports development, test, and production database connections - controlled by configuration in the database.yml file. Here is a blog post about creating other environment-specific configuration options, it is for Rails but might give you some ideas about how to do something similar for your environment. http://usablewebapps.com/2008/09/yaml-and-custom-config-for-rails-projects/

提交回复
热议问题