Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 663 Bytes

File metadata and controls

21 lines (15 loc) · 663 Bytes

Hooks Post Receive

Exemple de hooks git qui réagissent lors d'un push

Déploiement Drupal

#!/bin/sh

echo "*******************************************************"
echo "**** Bonjouuuur, je suis le script de post-receive ****"
echo "*******************************************************"

ssh USER@SERVER 'cd /PATH/;git pull orgin master;drush @ALIAS cc all;drush @ALIAS updb -y;drush @ALIAS core-cron;drush @ALIAS cc all'

echo "*******************************************************"
echo "**** Merci, j'ai terminééééé *************************"
echo "*******************************************************"

echo "Over ! "