Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Preamble

  • notify all stake holders before the release.
  • eas commit id:  d4409a9d62b6
  • config commit id:  f056e7f21852
  • execute all steps in the SF ENVs first and test the application.
  • if tests pass, then execute steps on SD ENVs.
  • In the unlikely event that things go very badly, we switch over to the old application in SD.

Web into MAINT Mode

put the web servers into maintenance mode (SF WEB, SD WEB)

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

Database Backup

Log onto the SF DB and back up the databases. The exact command line resides in the postgres user crontab.

Code Block
sudo -u postgres -i
crontab -l
/home/dba/scripts/dbbackup.sh > /var/tmp/dbbackup.log

Deploy Automation Scripts

Deploy new code to automation server.

Get the latest deploy script here: https://bitbucket.org/sfgovdt/eas/raw/default/automation/eas_automation_setupdeploy.py

Then run like so:

...

and put it here:

c:\apps\

remove the following two directories:

c:\apps\

...

eas_automation\automation

...

c:\apps\eas_automation\database

...

Then run like so:

Code Block
cd c:\apps\
python eas_automation_deploy.py eas_automation 

Keep your session open because you will use the automation scripts to send the release notification at the end.

Deploy Geoserver Configurations (SF)

We've added curved road labels and road labels on imagery to geoserver which means we need to deploy those configurations.

Code Block
cd /usr/share/apache-tomcat-7.0.32/webapps/
sudo curl -O https://bitbucket.org/sfgovdt/eas/raw/default/geoserver/deploy_geoserver_init.sh
sudo chmod 700 ./deploy_geoserver_init.sh
sudo ./deploy_geoserver_init.sh

Deploy

...

App to Web (SF)

Log into SF PROD WEB and deploy the application as shown here. 

Code Block
cd /var/www/html
sudo curl -O https://bitbucket.org/sfgovdt/eas/raw/default/web/bin/deploy_eas_init.sh
sudo chmod 700 ./deploy_eas_init.sh
sudo ./deploy_eas_init.sh {EAS_COMMIT} {CONFIG_COMMIT}d4409a9d62b6 f056e7f21852 rgaston

Test the application to make sure everything works.

Deploy to SD

If testing in SF passes, deploy the web app to SD PROD with steps parallel to SF PROD (WEB and GEO).

...

Code Block
cd /var/www/html
sudo ./set_eas_mode.sh STANDBY_SD

Release Notifications

  • remove 1.3.0 from road map
  • publish blog post
  • send email to stake holders using automation :
Code Block
python job.py --action EXECUTE --job announce_new_release --env SF_PROD


Done!

...