Git deployment strategy |
[eluser]ammonkc[/eluser]
I'm trying to come up with a good git to deploy my codeigniter applications to staging and production servers. But the problem is I'm trying to keep the codeigniter system and application directories above the html root directory for security purposes. This is what my folder structure looks like Code: /Library/WebServer/
[eluser]Lucas Vasconcelos[/eluser]
maybe you should use a layout like: Code: /var/www /* you ftp root dir */ your local git repository must have the following structure: Code: /your-development-path/ so, when you pull the changes for remote repository all your files will be updated! another way [more sophisticated] is use some build automation tool, like phing
[eluser]ammonkc[/eluser]
That works fine for a setup with a single codeigniter instance. But I have many different websites setup using virtualhosts. Code: /var/www /* you ftp root dir */ The only way that I can think of to deploy one of those applications with a git push is if I did something funky with a symlink to the index.php Code: var/www /* you ftp root dir */
[eluser]Lucas Vasconcelos[/eluser]
you'r right! the symlink sounds like a good workaround (y) |
Welcome Guest, Not a member yet? Register Sign In |