github - Gitignore CodeIgniter -


before put first (codeigniter) application on github, have question codeigniter .gitignore file (see below). not have development directory in config directory. can .gitignore */config/* instead? importance of development directory in config directory?

*/config/development */logs/log-*.php */logs/!index.html */cache/* */cache/!index.html 

many people set development , production folders in config folders. codeigniter load correct file correct folder depending on environment set in main index.php

if you're creating public repository on github copy files passwords , keys (your config.php , database.php 2 come standard framework believe) new folder called development inside config, remove passwords , paths , things ones in root folder. leave gitignore is.

this way when push git aren't pushing personal private information project.


Comments

Popular posts from this blog

Need help in packaging app using TideSDK on Windows -

java - Why does my date parsing return a weird date? -

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -