diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-01-24 17:16:24 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-01-24 17:16:24 +0000 |
commit | 9b19c3e0ac4df81fff6bf9b95ba8e9f07909088a (patch) | |
tree | 6904f232fce81dc40455718e60336f54aa10adc9 /script/rails-deploy-while-down | |
parent | 0f9d8a8df7d0fd4c070d778bb55d41072906cc8e (diff) | |
parent | b0a939a4d44077b4602176042ff4432b790561ad (diff) |
Merge branch 'release/0.16' into rails-3-develop
Diffstat (limited to 'script/rails-deploy-while-down')
-rwxr-xr-x | script/rails-deploy-while-down | 16 |
1 files changed, 16 insertions, 0 deletions
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 |