1 - Preamble

This deployment will consist of the following general steps:

2 - Web Application into Maintenance Mode

Place the Web servers into maintenance mode (SF PROD WEB, DR PROD WEB).

cd /var/www/html
sudo ./set_eas_mode.sh MAINT
cd /var/www/html
sudo ./set_eas_mode.sh MAINT

3 - Backup the EAS Databases

Log onto SF PROD DB and back up the EAS databases.  The database backup script simply creates an additional daily backup, which are periodically purged from the file system, so there is no need to be concerned about the accumulation of "forgotten" database backups.

sudo -u postgres -i
/home/dba/scripts/dbbackup.sh > /var/tmp/dbbackup.log
# You should receive an email notifying you of the status of the backup.
# The database backup log file is another source of information about the
# outcome of the backups.  Note that an empty database backup log file
# indicates that the backups were successful.
ls -la /var/tmp/dbbackup.log
cat /var/tmp/dbbackup.log

# The existence of the database backups can also be confirmed directly
# from the command line:
ls -la /mnt/backup/pg/daily/easproddb.sfgov.org-*

4 - Deploy Automation Scripts (SF only)

There is no DR PROD AUTO machine.

cd C:\apps\
python eas_automation_deploy.py eas_automation

5 - Deploy the Web Application (SF)

cd /var/www/html
sudo ./deploy_eas_init.sh e7696197ffe0 91ac3c3c21bf samuelvaldez

6 - Deploy the Web Application (DR)

You will not be able to log into the Web application in the disaster recovery production environment (DR PROD WEB) if database replication is running.

cd /var/www/html
sudo ./set_eas_mode.sh STANDBY_DR

7 - Release Notifications

cd C:\apps\eas_automation\automation\src
python job.py --action EXECUTE --job announce_new_release --env SF_PROD