Download Latest Version hlm.tar.gz (163.8 kB)
Email in envelope

Get an email when there's a new version of test

Home
Name Modified Size InfoDownloads / Week
hlm.tar.gz 2024-01-13 163.8 kB
lepont.zip 2021-07-06 63.6 kB
test.tar.gz 2021-05-12 51.8 MB
projet_docker.tar.gz 2021-04-18 102.4 kB
_env 2021-04-16 1.2 kB
docker.tar.gz 2021-04-16 26.6 MB
README.md 2021-04-16 3.5 kB
CHANGELOG.md 2021-04-16 175 Bytes
db_pcr.sql 2021-04-15 2.3 MB
projet.zip 2021-04-15 29.5 kB
_docker.zip 2021-04-14 28.7 kB
docker-compose.zip 2021-04-14 495 Bytes
contrat iobeya 20200311131325.pdf 2020-03-11 2.3 MB
2019-01-31_14h10_13.png 2019-01-31 13.5 kB
2019-01-30_15h10_58.png 2019-01-30 321.4 kB
2019-01-30_15h09_03.png 2019-01-30 65.7 kB
2019-01-30_15h06_33.png 2019-01-30 115.4 kB
2019-01-30_15h02_34.png 2019-01-30 64.1 kB
2019-01-30_14h57_34.png 2019-01-30 24.0 kB
mod.png 2019-01-29 67.3 kB
custom drush install.txt 2019-01-29 365 Bytes
examples drush commands.txt 2019-01-29 7.6 kB
installation002 2019-01-29 2.5 kB
drush install.txt 2019-01-29 1.8 kB
npm changer proxy if erreur authentified.txt 2019-01-29 584 Bytes
git commandes.txt 2019-01-29 6.4 kB
drush commandes.txt 2019-01-29 1.6 kB
composer commandes.txt 2019-01-29 1.6 kB
commandes unix.txt 2019-01-29 3.5 kB
commande sql.txt 2019-01-29 1.8 kB
Totals: 30 Items   84.1 MB 1

Projet Hénéa

Etapes a suivre

  • 1 Installer Composer

  • 2 Installer Docker (docker-compose)

  • 3 Installer Git
  • 4 Cloner le projet du ripository.
sudo apt-get update
git clone git@gitlab.com:ks007/oriane-2020.git  /oriane
  • 5 Lancement du build
cd /oriane
docker-compose -p henea up --build
composer install (afin d'eviter l'erreur d'autoloader).

NB: l'utilisation de l'argument "--build" est requis est requis
 uniquement pour la 1er installation ou pour réparer l'image

NB: docker-compose ps -a pour etre sure que les images sont opperationelle
  • 6 Url du projet
http://localhost:99
  • 7 Url de PhpMyAdmin
http://0.0.0.0:8001/
  • 8 Importer la base de données dans le container mysql
docker exec -i nom_du_container_mysql  mysql -h<nom_du_container_mysql > -uroot -proot db_name < oriane_20_02.sql
  • 9 docker-compose.yml
version: '3'
services:
  nginx:
    build:
      context: .
      dockerfile: .docker/nginx/Dockerfile
    ports:
      - "99:80"
    expose:
      - "80"
    stdin_open: true
    tty: true
    volumes:
      - "./:/opt/app"
    command: nginx
  php-fpm:
    build:
      context: .
      dockerfile: .docker/php-fpm/Dockerfile
    expose:
      - "9000"
    volumes:
      - "./:/opt/app"
    stdin_open: true
    tty: true
    command: php-fpm
  mysql:
    container_name: my_mysql
    image: mysql:5.7
    environment:
        - MYSQL_DATABASES=my_database
        - MYSQL_ROOT_PASSWORD=root
        - MYSQL_HOST=localhost
        - MYSQL_PORT=33306
    ports:
        - "33306:3306"
    volumes:
        - "./volumes/mysql:/var/lib/mysql"

  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    environment:
      PMA_ARBITRARY: 1
    ports:
      - 8001:80
    links:
      - mysql

Règle de nommage des branche Git

bug    - Changements de code liés à un problème connu.
feat   - Nouvelle fonctionnalité.
hotfix - Corrections rapides.
junk   - Test (ne sera jamais merge).

<nom>

Utilisez toujours des tirets pour séparer les mots.

Exemples

feat/login-page
hotfix/ftp-access
bug/login-ie

Export configuration et contenu Drupal avant commit.

Avant tout il faut vérifier que tout les membre de l'équipe on le même uuid avec la commande

drush cget system.site uuid

Pour modifier le uuid

drush cset system.site uuid -----

Ajouter les lignes suivants a la fin de fichier sites/default/settings.php

# Default config directories provided by the installer.
$config_directories['active'] = 'deploy/active';
$config_directories['staging'] = 'deploy/staging';

# Config directory used for deployments.
$config_directories['deploy'] = 'deploy/config';
$settings['default_content_deploy_content_directory'] = 'deploy/content';

Export config

drush cex deploy -y

Import config

drush cim deploy -y

Export contenu

drush dcdes

Import contenu

drush dcdi -y

Les instruction pour faire un pull depuis le branch develop.

git add .
git commit -m "commit 4 pull" / dans votre branch
git checkout develop
git pull origin develop
drush config-import deploy
git checkout mon-branche
git rebase develop

# en cas de conflit correction du conflit puis
git add .
git rebase --continue

Les instruction pour faire un push.

``` git add . git commit -m 'Petite description du commit' git push origin mon-branche cliquer sur le lien afficher dans le console pour créer un merge requests Merge votre branche dans la branche develop

Source: README.md, updated 2021-04-16