GridServer implementation using NginX Server Blocks, and gitlab.
Goal is to run a setup similar to Media Temples GridServer using NginX Server Blocks optimized with varnish for lightning Wordpress installs, all under app1.domain.com structure, while also housing gitlab under gitlab.domain.com. This is branching off my other question: https://www.digitalocean.com/community/questions/staging-production-environments Ideal end goal is to: 1. Have a main wp install on domain.com (company site) 2. House all "staging" sites under #1, as app1.domain.com 3. House gitlab on gitlab.domain.com 4. Gitlab would house all "staging" sites in individual repos 4a. Is the best method for the repos to hold the whole site including core, themes, plugins, etc. like pagodabox does or house only say a vagrant/composer setup so the repo is lightweight - but what about the theme files? 4b. When pushing to these repos should they auto deploy changes similar to pagodabox/heroku? 5. Separate droplets created from snapshots of "staging" site for "production" sites, which im not even sure thats currently possible since the snapshot wouldnt be able to target individual blocks.. 5a. Would it then require an image ( say NginX/wp/php/varnish/vagrant setup ) to launch new "production" droplets, and then import dbs and themes/files/uploads? Seems like there would be a better option, especially for when making updates. I know this cover a lot, trying to figure out the best method for staging/prod deployments while keeping a revision history (git repo) and making sure everyone has an exact copy of environments/dbs/dependancies (vagrant/composer). Any help would be much appreciated! -CK