Skip to content

migasQ/moodle-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moodle

Start

  • cp .env-template .env and edit accordingly
  • cp www/config-template.php www/config.php and edit accordingly
  • docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)
  • docker compose up -d
  • Set up cronjob * * * * * docker exec php-fpm /usr/local/bin/php /var/www/html/admin/cli/cron.php

Update

  • On server

    • Update all plugins
    • Commit & push
  • Locally

    • Download from https://download.moodle.org/releases/latest/

      unzip moodle-latest-501.zip
      mv www www_bak
      mv moodle www
      cp -r www_bak/mod/choicegroup www/public/mod/
      cp -r www_bak/course/format/tiles www/public/course/format/
      rm -rf www_bak
    • Commit & push

  • On server

    • Set $CFG->upgradekey = 'put_some_shared_secret_here';
    • Activate maintenance mode
    • File backup & DB backup
    • git pull
    • docker compose pull && docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --no-cache
    • docker compose up -d
    • docker compose exec -u www-data php-fpm /bin/bash & composer install --no-dev --classmap-authoritative
    • Upgrade in browser
    • Update all plugins (again)
    • Deactivate maintenance mode
    • Commit & push

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published