Skip to content

Build new tag and redeploy

Mx A. Matienzo edited this page Jul 23, 2013 · 5 revisions

ssh to IAM host

One t1.micro runs with sufficient IAM permissions to perform its tasks.

Build archivesspace.jar and upload to amazon S3

Log on to the #archivesspace irc channel.

ssh to the control host

cd aws-as and edit the file setenv.sh

export TAG="v0.4.1"

update TAG to the new tag to build.

Then run:

./launch-build.sh

A message will appear in the irc channel when the jar is built. Then go to the wiki and update the downloads page.

Launch a new database and server

Edit the database identifier in setenv.sh.

export DB_INSTANCE_IDENTIFIER=beta02

DB_INSTANCE_IDENTIFIER can be whatever you want, as long as it is a new name because you will get an error if the database already exists.

Then run: ./launch-ec2.sh

Once the database and web server have started up, the hostname for the new machine will be displayed. Note that hostname for the next step.

Make sure the new server starts up

Wait for the application to start by going http://hostname-noted-in-last-step/

If it does not start, ssh to ec2-user@hostname-noted-in-last-step and investigate.

If it does start, note the instance identifier in the lower left hand corner by the version number. It will start i-. Note this identifier for the next step.

Reassign dynamic IP address to point to new server

ec2-associate-address `dig alpha.archivesspace.org +short` -i i-identifier-noted-in-last-step

Shut down old server and database

I don't have this automated; you have to remember to go into the console and shut them down.