From 58aa2bf89d0a3839bdfc13529f4c0fdac6a24132 Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Wed, 8 Jan 2014 09:05:37 +0000 Subject: Split rails-post-deploy into rails-deploy-(before|while)-down --- script/rails-deploy-while-down | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 script/rails-deploy-while-down (limited to 'script/rails-deploy-while-down') diff --git a/script/rails-deploy-while-down b/script/rails-deploy-while-down new file mode 100755 index 000000000..a5dc772d3 --- /dev/null +++ b/script/rails-deploy-while-down @@ -0,0 +1,16 @@ +#!/bin/bash +# +# rails-deploy-while-down + +# For Ruby on Rails, run this in exec_while_down in vhosts.pl. It does +# any deploy actions that should be done while the site is down; +# typically this is the database migrations. +# +# Copyright (c) 2014 UK Citizens Online Democracy. All rights reserved. +# Email: hello@mysociety.org; WWW: http://www.mysociety.org/ + +set -e +#set -x # debug + +# upgrade database +bundle exec rake db:migrate #--trace -- cgit v1.2.3