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
Post a Comment