Просмотр исходного кода

add an email to the team

master
duncan.parkes 17 лет назад
Родитель
Сommit
ebb566f768
2 измененных файлов: 18 добавлений и 0 удалений
  1. +4
    -0
      deployment_script_common
  2. +14
    -0
      deployment_script_haggis

+ 4
- 0
deployment_script_common Просмотреть файл

@@ -72,6 +72,10 @@ echo
echo "Updating deployment log"
echo "Deployed by $USER on `date`" >> $DEPLOYMENT_LOG

# Email the team
echo "emailing the team"
echo "www.planningalerts.com redeployed by $USER at `date`" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL

echo
echo "Remember to check that there are no changes needed in:"
echo ".htaccess"


+ 14
- 0
deployment_script_haggis Просмотреть файл

@@ -0,0 +1,14 @@
#!/usr/local/bin/bash

export PLANNING_ROOT="/data/vhost/www.planningalerts.com/"
export PLANNING_BACKUPS="$PLANNING_ROOT/backups/"
export DEPLOYMENT_LOG_DIRECTORY="$PLANNING_ROOT/logs/"
export DEPLOYMENT_LOG="$DEPLOYMENT_LOG_DIRECTORY/deployment_log"

export BACKUP_DIRECTORY_NAME="planningalerts_backup_`date +%F_%Hh%Mm%Ss`"

export BACKUP_DIRECTORY="$PLANNING_BACKUPS$BACKUP_DIRECTORY_NAME/"

export TEAM_EMAIL="team@planningalerts.com"

$SHELL deployment_script_common

Загрузка…
Отмена
Сохранить