geoadmin/mf-geoadmin3 — pull request #113 by gjn (2013-07-11 07:24:13+00:00)
Title: Dev deploy branches

This PR will allow the deployment of any branch to a permanent place on both test and integration.

Note: this does _not_ replace or supersede our existing deployment process for official deployments. These are untouched by this PR.

Use `make deploybranch` *in your working directory* to deploy your current branch to test and integration. The code for deployment, however, does not come from your working directory, but does get cloned (first time) or pulled (if done once) *directly from github*. So you'll likely use this command *after* you push your branch to github.

Use `make deploybranch GIT_BRANCH=dev_other_branch` to deploy a different branch than the one you are currently working on. Make sure that the branch specified exists on github.

The first time you use the command will take some time to execute.

The code of the deployed branch is in a specific directory `/var/www/vhosts/mf-geoadmin3/private/branches` on both test and integration. There exists one apache configuration for all branches, `/var/www/vhosts/mf-geoadmin3/private/branches/app.conf` which is loaded by apache and puts all branches under the url `/branch/`.

Sample path:
`http://mf-geoadmin30i.bgdi.admin.ch/branch/dev_bottombar/app-prod`

Overview of all deployed branches:
`http://mf-geoadmin30i.bgdi.admin.ch/branch`

Please only use integration url for external communication (including here on github), even though the exact same structure is also available on our test instances.

Please review.