title: Multiple dev setup with CodeIgniter, GIT and Apache on dev server
body: <p>I'm trying to use CodeIgniter, GIT and Apache 2 to develop a web app (PHP/MySQL) with a couple of web developers. To set up an environment where each developer has their own lil' virtual sandbox server I imagine a virtual host on Apache (isolated by ports) needs to be created for each dev and each developer has a hook that copies their committed code to their web root (of their virtual host). The only problem is eventually each dev will push their code to the central dev server and each of their code will have a modified config file (CI's index.php file) with different paths for the 'application' and 'system' folders which will cause a major conflict.</p>
  
  <p>For example: dev1 and dev2's web root and index.php file is in 'home/dev1/www/myapp/front-end/' and 'home/dev2/www/myapp/front-end/' respectively and index.php will point to 'home/dev1/www/myapp/back-end/application/' and 'home/dev2/www/myapp/back-end/application/' for the application path respectively but the main dev server's web root and index.php is in '/var/www' and index.php points to '/data/myapp/application' for the application path).</p>
  
  <p>How do I get around this issue? Is there a better solution than the route I'm thinking of?</p>