esup-pod

Arborescence des pages

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

pod@pod:~$ cd django_projects/podv3/
pod@pod:~/django_projects/podv3$ workon django_pod3
(django_pod3) pod@pod:~/django_projects/podv3$ git status
(django_pod3) pod@pod:~/django_projects/podv3$ git pull origin master
(django_pod3) pod@pod:~/django_projects/podv3$ pip3 install -r requirements.txt
(django_pod3) pod@pod:~/django_projects/podv3$ python manage.py makemigrations
(django_pod3) pod@pod:~/django_projects/podv3$ python manage.py migrate
# mise à jour des composants js/css via yarn
(django_pod3) pod@pod:~/django_projects/podv3$ cd pod; yarn upgrade; cd ..
# Attention : avant de lancer collectstatic --clear, assurez-vous d'avoir sauvegardé le dossier static/custom si vous y avez mis des fichiers personnalisés.
(django_pod3) pod@pod:~/django_projects/podv3$ python manage.py collectstatic --no-input --clear
(django_pod3) pod@pod:~/django_projects/podv3$ sudo systemctl restart    uwsgi-pod


Avertissement

Lors de l'exécution de la commande make statics (équivalent de  python manage.py collectstatic --no-input --clear), si vous obtenez l'erreur du type npm@10.8.1: The engine "node" is incompatible with this module. Expected version "^18.17.0 || >=20.5.0". Got "18.12.1", cela provient de la version de NodeJS.

Il suffit alors de mettre à jour NodeJS via la commande suivante (à adapter selon votre environnement) :

sudo apt install nodejs

Mise à jour des paramètres

...

  • Rendez-vous dans le dossier opencast-studio/
  • Récupérer la dernière version d'Opencast Studio via la commande suivante :

    Bloc de code
    languagebash
    # Choisir un tag récent car la branche master est sur la version 2.0 qui est un redesign complet
    # la liste des tags: https://github.com/elan-ev/opencast-studio/tags
    git checkout tags/2023-09-14
    
    git pull


  • Régénérez Pour les versions jusqu'à 2023-09-14 : régénérez l'Opencast Studio avec la bonne configuration pour Pod via les commandes suivantes :

    export PUBLIC_URL=/studio
    npm install
    npm run build

    Pour les versions plus récentes (tags > 2023-10-10), les commandes diffèrent légèrement :

    export PUBLIC_PATH=/studio
    npm install
    npm run build:release


  • Le répertoire build est alors mis à jour. Renommez-le en studio, puis copier le dans le répertoire pod/custom/static/opencast/

    mkdir -p pod/custom/static/opencast/studio
    cp -r build/* pod/custom/static/opencast/studio


...