Skip to content
Snippets Groups Projects
Select Git revision
  • da8d254530f611b65bf176db1f76595977af747d
  • main default protected
  • renovate/django-5.x
  • koma/feature/preference-polling-form
4 results

0024_event_dependencies.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    update.sh 824 B
    #!/usr/bin/env bash
    # Update AKPlanning
    # execute as Utils/update.sh
    
    # abort on error, print executed commands
    set -ex
    
    # activate virtualenv if necessary
    if [ -z ${VIRTUAL_ENV+x} ]; then
        source venv/bin/activate
    fi
    
    # set environment variable when we want to update in production
    if [ "$1" = "--prod" ]; then
        export DJANGO_SETTINGS_MODULE=AKPlanning.settings_production
    fi
    
    # before potentially breaking anything, create a data backup
    mkdir -p backups/
    python manage.py dumpdata --indent=2 > "backups/$(date +"%Y%m%d%H%M")_datadump.json" --traceback
    
    git pull
    pip install --upgrade setuptools pip wheel
    pip install --upgrade -r requirements.txt
    
    ./manage.py migrate
    ./manage.py collectstatic --noinput
    ./manage.py compilemessages -l de_DE
    
    
    # Update documentation
    cd docs
    make html
    cd ..
    
    touch AKPlanning/wsgi.py