blob: a5dc772d3e4974e70cb9b2c1d385d3e466756c22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|