diff options
author | Danilo Šegan <danilo@segan.org> | 2012-08-13 13:43:07 +0200 |
---|---|---|
committer | Danilo Šegan <danilo@segan.org> | 2012-08-13 13:43:07 +0200 |
commit | d2dc0e85fe6a00e75749aceb7a1aed84365c8c2f (patch) | |
tree | 51694b4bbdde02b10947d0b48911ea4da427e3dd /scripts/update-deployment.py | |
parent | a1d94c0a4fb03977aab7aff0cb570eee65303517 (diff) |
Add some documentation to the update-deployment script.
Diffstat (limited to 'scripts/update-deployment.py')
-rwxr-xr-x | scripts/update-deployment.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/update-deployment.py b/scripts/update-deployment.py index 91198fb..75ce51d 100755 --- a/scripts/update-deployment.py +++ b/scripts/update-deployment.py @@ -1,5 +1,39 @@ #!/usr/bin/env python2.7 +"""Update a deployment of lp:linaro-license-protection. + +This script assumes that initial deployment has been done in accordance +with the README as found in lp:linaro-license-protection/configs. + +This means at least: + + * /srv/shared-branches/linaro-license-protection + Branch of lp:linaro-license-protection (script will do 'bzr pull' on it) + + * /srv/shared-branches/linaro-license-protection-config + Branch of lp:linaro-license-protection/configs + + * /srv/staging.snapshots.linaro.org/linaro-license-protection + Checkout of /srv/shared-branches/linaro-license-protection + (script will do an equivalent of 'bzr update' on it) + + Note that this applies to staging snapshots config. Replace paths + accordingly. + + * /srv/staging.snapshots.linaro.org/configs + Checkout of /srv/shared-branches/linaro-license-protection-configs + + * /srv/staging.snapshots.linaro.org/db exists and is writeable by + both apache and the user running update-deployment.py script. + + * /srv/staging.snapshots.linaro.org/linaro-license-protection/static + is writeable by the user running update-deployment.py script. + +Supported configs so far are snapshots.linaro.org, releases.linaro.org, +staging.snapshots.linaro.org and staging.releases.linaro.org. + +""" + import argparse import bzrlib.branch import logging @@ -80,6 +114,7 @@ def update_installation(config, installation_root): ["django-admin", "collectstatic", "--noinput"], cwd=code_root)) + if __name__ == '__main__': parser = argparse.ArgumentParser( description=( |