aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-deploy-while-down
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-01-24 09:28:17 +0000
committerLouise Crow <louise.crow@gmail.com>2014-01-24 09:28:17 +0000
commit2c970062faca6a0c0599a9b6e20d42df4081c87f (patch)
treec66db9d1a94c131b82ed0f2384850afbbd7c5e83 /script/rails-deploy-while-down
parentcb24c2cd630e35aff825859883345cce053d9df5 (diff)
parent73020ca44d1242730d9423c335e5fb5fc14482e8 (diff)
Merge branch 'release/0.16' of ssh://git.mysociety.org/data/git/public/alaveteli into release/0.16
Diffstat (limited to 'script/rails-deploy-while-down')
-rwxr-xr-xscript/rails-deploy-while-down16
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