Sharing a CodeIgniter Git configuration file for publishing publicly

I am going to start a project based on CodeIgniter and plan to use Git as our DVCS. I will work with several other developers, and the central (source) server is private. But I also want to open source and post the code on Github later.

My question is, is there a way to separate the configuration file in Git, so that the personal information in the configuration file is not sent to the remote Github, but is located at the beginning of other peer nodes as well.

Another question: can we use a similar solution for local development and server configuration files for production?

+5
source share
3

config.php.sample database.php.sample, , . config.php database.php .gitignore

config.php database.php. config.php database.php, git.

+9

Codeigniter (, ..). , CodeIgniter.

, .gitignore

http://progit.org/book/ch2-2.html

: github ; Github .gitignore ( codeigniter)

+2

You should use the deployment tool to install the configuration file when deploying the application to the target system.

capistranoc railsless-deployis a good option

0
source

All Articles