Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Expanded Steps 1, 2 and 3.

...

  • eas changeset id: TBD
  • sfeas_config changeset id: TBD

This deployment will consist of the follow general steps:

  •  Send an email to DT-EAS-User-Group and CC-ed to DT-SFGIS-User-Group to let them know that the version release has begun. 
  • Perform the steps below in the San Francisco production environment (SF PROD *) and then test the application in that environment.

...

  • If the application passes its tests, then perform the steps below in the disaster recovery production environment (DR PROD *) and then test the application in that environment.

...

  • In the unlikely event that things go very badly, we would switch over to the previous version of the application in the disaster recovery production environment (DR PROD *).

2 - Web Application into Maintenance Mode

...

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

Code Block
languagebash
linenumberstrue
cd /var/www/html
sudo ./set_eas_mode.sh MAINT
  •  SF PROD WEB
  •  DR PROD WEB

3 - Backup the Database

...

Log onto SF PROD DB and back up the 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.

Code Block
languagebash
linenumberstrue
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-*
  •  Database was backed up
  •  Database backup was verified

4 - Deploy the Web Application (SF)

...

Code Block
languagebash
linenumberstrue
cd /var/www/html
sudo ./deploy_eas_init.sh 0485057b0593 b80a53e54e66<eas-changeset-id> <sfeas_config-changeset-id> samuelvaldez
  •  Test the application to make sure everything works.

...