Installer Etherpad sur votre hébergement web POWER

Base de connaissances

Installer Etherpad sur votre hébergement web POWER


Icons/System/eye-open Created with Sketch. 591 vues 27.04.2023 POWER Web Hosting

Objectif

Vous avez souscrit à un hébergement web POWER Node.js et vous souhaitez y installer un outil de production de texte collaboratif en ligne. Etherpad est l'outil idéal.

Découvrez comment installer Etherpad sur votre hébergement web POWER

Prérequis

Si vous n'êtes pas encore familier avec l'utilisation de votre hébergement web POWER, nous vous conseillons de consulter notre guide « Premiers pas avec un hébergement web POWER » avant de poursuivre la lecture de ce guide.

En pratique

Supposons que vous avez la configuration normale pour un hébergement web POWER :

  • Moteur : nodejs 14
  • Point d'entrée : index.js
  • Dossier racine : www

Vous pouvez appeler l'API OVHcloud pour visualiser la configuration active.

Accédez via SSH à votre hébergement web POWER et récupérez les sources d'Etherpad dans le répertoire www :

cd www
git init
git remote add origin https://github.com/ether/etherpad-lite.git
git pull origin refs/tags/1.8.6

Etherpad 1.8.7 n'est pas compatible avec l'hébergement web POWER car nous ne supportons actuellement pas l'option "experimental-worker".

Installez les dépendances d'Etherpad et configurez le point d'entrée :

bash bin/installDeps.sh
ln -fs node_modules/ep_etherpad-lite/node/server.js index.js

Redémarrez votre instance, votre Etherpad sera alors en ligne.

Etherpad

Sortie du terminal :

~ $ node -v
v14.15.4
~ $ rm -rf www
~ $ mkdir www
~ $ cd www
~/www $ git init
~/www $ git remote add origin https://github.com/ether/etherpad-lite.git
~/www $ git pull origin refs/tags/1.8.6
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 36100 (delta 1), reused 0 (delta 0), pack-reused 36098
Receiving objects: 100% (36100/36100), 16.57 MiB | 14.04 MiB/s, done.
Resolving deltas: 100% (25484/25484), done.
From https://github.com/ether/etherpad-lite
 * branch            release/1.8.6     -> FETCH_HEAD
 * [new branch]      release/1.8.6     -> origin/master
Checking out files: 100% (492/492), done.
~/www $ bash bin/installDeps.sh
Copy the settings template to settings.json...
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.

> wd@1.12.1 install /home/powerlp/www/src/node_modules/wd
> node scripts/build-browser-scripts

added 799 packages in 11.642s
Clearing minified cache...
~/www $ ln -fs node_modules/ep_etherpad-lite/node/server.js index.js
~/www $ mkdir -p tmp
~/www $ touch tmp/restart.txt

Aller plus loin

Échangez avec notre communauté d'utilisateurs.

Venez sur Discord sur notre room web-hosting-power pour discuter avec les autres utilisateurs du lab et avec l'équipe POWER Web Hosting.

Articles associés