~dholbach/developer-ubuntu-com/add-toc-md-ext

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: David Callé
  • Date: 2016-03-31 22:07:17 UTC
  • mfrom: (137.1.34 staging)
  • Revision ID: davidc@framli.eu-20160331220717-0tmpege0z262c069
Sync with staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
swift-perms:
16
16
        @echo "Setting up Swift bucket permissions"
17
 
        @if [ "${SWIFT_CONTAINER_NAME}" = "" ]; then echo "Using default upload container"; http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" swift post --read-acl '.r:*' devportal_uploaded; else http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" swift post --read-acl '.r:*' $(SWIFT_CONTAINER_NAME); fi
18
 
        @if [ "${SWIFT_STATICCONTAINER_NAME}" = "" ]; then echo "Using default static container"; http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" swift post --read-acl '.r:*' devportal_static; else http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" swift post --read-acl '.r:*' $(SWIFT_STATICCONTAINER_NAME); fi
 
17
        @if [ "${SWIFT_CONTAINER_NAME}" = "" ]; then echo "Using default upload container"; swift post --read-acl '.r:*' devportal_uploaded; else swift post --read-acl '.r:*' $(SWIFT_CONTAINER_NAME); fi
 
18
        @if [ "${SWIFT_STATICCONTAINER_NAME}" = "" ]; then echo "Using default static container"; swift post --read-acl '.r:*' devportal_static; else swift post --read-acl '.r:*' $(SWIFT_STATICCONTAINER_NAME); fi
19
19
 
20
20
update-apidocs:
21
21
        @if [ $(DATABASE_URL) ]; then DJANGO_SETTINGS_MODULE=charm_settings ./update_apidocs.sh > ${PWD}/../../logs/update_apidocs.log 2>${PWD}/../../logs/update_apidocs_errors.log; fi
51
51
collectstatic: collectstatic.done
52
52
collectstatic.done:
53
53
        @echo "Collecting static files"
54
 
        @http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" python manage.py collectstatic -v 0 --noinput --settings charm_settings 2>/dev/null
 
54
        @python manage.py collectstatic -v 0 --noinput --settings charm_settings 2>/dev/null
55
55
        @touch collectstatic.done
56
56
 
57
57
collectstatic.debug:
58
58
        @echo "Debugging output from collectstatic"
59
 
        @http_proxy="${swift_proxy}" https_proxy="${swift_proxy}" python manage.py collectstatic -v 1 --noinput --settings charm_settings
 
59
        @python manage.py collectstatic -v 1 --noinput --settings charm_settings
60
60
 
61
61
update-pip-cache:
62
62
        @echo "Updating pip-cache"
63
63
        rm -rf pip-cache
64
64
        bzr checkout --lightweight lp:developer-ubuntu-com/dependencies pip-cache
 
65
        rm pip-cache/*
65
66
        pip install --exists-action=w --download pip-cache/ -r requirements.txt
66
67
        bzr add pip-cache/* 
67
68
        bzr commit pip-cache/ -m 'automatically updated devportal requirements'