Skip to content
Extraits de code Groupes Projets
Valider b73a2242 rédigé par nicod's avatar nicod
Parcourir les fichiers

Traduction du Readme

parent b1856506
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Intégration de spip-cli à DDEV
(english below)
# [fr] Intégration de spip-cli à DDEV
DDEV est une couche d'abstraction à docker et docker-compose qui permet de mettre en place rapidement des environnements de développement avec de multiples versions de PHP, de Mysql, avec Apache ou Nginx, sans avoir rien installer ou modifier sur la machine hôte.
https://ddev.readthedocs.io
Ce script permet d'intégrer spip-cli parmi les outils disponibles (comme composer, drush, artisan, wp-cli), pour l'installer dans le conteneur et interagir avec le SPIP qui y est installé.
Ce script permet d'intégrer [spip-cli](https://contrib.spip.net/SPIP-Cli) parmi les outils disponibles (comme composer, drush, artisan, wp-cli), pour l'installer dans le conteneur et interagir avec le SPIP qui y est installé.
spip-cli fonctionnera alors avec la version de PHP du conteneur, et pas avec celle de la machine hôte.
## 1/ Installation :
- pour une utilisation globale pour tous les projets, copier ce script bash dans `~/.ddev/commands/web`
## 1/ Installation :
- pour une utilisation globale pour tous les projets, copier ce script bash dans `~/.ddev/commands/web`
- ou bien, pour une utilisation par projet, le copier simplement dans `/var/www/html/nom_du_site/.ddev/commands/web`
puis redémarrer le projet pour pouvoir l'utiliser : `ddev restart nom_du_site`.
......@@ -21,3 +24,28 @@ Si tout est ok, vous devez voir `spip` dans la liste des commandes disponibles a
Il suffit de lancer une première fois `ddev spip`, qui vous proposera d'installer spip-cli, puis de l'utiliser avec les commandes habituelles, par exemple : `ddev spip dl`.
En cas de restart du conteneur, les fichiers de son système sont écrasés, il faut donc relancer l'installation.
# [en] Integration of spip-cli with DDEV
DDEV is an abstraction layer to docker and docker-compose that allows to quickly set up development environments with multiple versions of PHP, Mysql, with Apache or Nginx, without having to install or modify anything on the host machine.
https://ddev.readthedocs.io
This script allows you to integrate [spip-cli](https://contrib.spip.net/SPIP-Cli) with the available tools (such as composer, drush, artisan, wp-cli), to install it in the container and interact with the SPIP installed there.
spip-cli will then work with the version of PHP in the container, and not with the version on the host machine.
## 1/ Installation :
- for global use for all projects, copy this bash script into `~/.ddev/commands/web`
- or, for a use per project, simply copy it in `/var/www/html/site_name/.ddev/commands/web`
then restart the project to be able to use it : `ddev restart site_name`.
If everything is ok, you should see `spip` in the list of available commands with `ddev -h`.
## 2/ Use
You just have to run `ddev spip` once, which will propose you to install spip-cli, then use it with the usual commands, for example : ddev spip dl.
If the container is restarted, its system files will be overwritten, so you will have to restart the installation.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter