Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • wip
  • aprilscherz
  • feature-block-new-request
  • feature-show-lectures
5 results

cipmap

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    django
    .gitignore
    .gitmodules
    LICENSE
    README.md

    README

    Requirements

    • python3-django

    Local:

    • python3-django-debug-toolbar

    Staging:

    • postgresql
    • python3-django-debug-toolbar
    • python3-psycopg2

    Production:

    • postgresql
    • python3-psycopg2

    Installation

    secrets.json

    TODO: Write documentation

    Cronjobs

    irker (IRC notifications for git pushes)

    (Re-)starts irker every day at 3:00.

    @reboot cd /proj/cipmap/data/irker && screen -dmS irkerd ./start-irkerd.sh
    0 3 * * * screen -S irkerd -X quit; cd /proj/cipmap/data/irker && screen -dmS irkerd ./start-irkerd.sh

    LIVE-CipMap

    Transfers requests to buddy lectures. Needs to be run every quarter of an hour because lectures end at :00, :30 and at :45.

    */15 * * * * cd /proj/cipmap/data/cipmap/django && make --silent transfer_requests

    Collects all statistical data to past exercises and summarizes them. Needs to be run before buildgraphics but more often reduces data life time.

    */15 * * * * cd /proj/cipmap/data/cipmap/django && make --silent collectstatistics

    TEST-CipMap

    Same as at LIVE-CipMap.

    */15 * * * * cd /proj/cipmap/data/cipmap-test/django && make --silent transfer_requests
    */15 * * * * cd /proj/cipmap/data/cipmap-test/django && make --silent collectstatistics

    Apache

    We have issues with "503 service unavailable", restarting the apache helps, for now do it daily ... and see if that helps.

    18 5 * * * sudo /bin/systemctl restart apache2 >/dev/null