I'm in the middle of trying to move a PHP/MySQL web app (built on CodeIgniter 2.01 framework) to a GIT repository. The problem is for added security I've implemented the best practice of separating the application part (application & system folders) and the web files (index.php, images, css, js, etc. folders). The web files are located in /var/www and the application stuff is located in /data/company/apps/myapp.
Since I would like to keep this added security, how do I migrate a project that has multiple locations like this into GIT?
I don't think the structure of your Git repository and the structure of the deployed files need to match:
post-receive
hook for instance) copying the files from your Git repo to the right system paths (you separate SCM -- Source Control management -- from RM -- Release Management),I added in the comments:
To which the OP crashintoty replied: