aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
blob: f1c63965eb74b9fd0a8abbf4b66593d32cccb2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# rails-post-deploy
# For Ruby on Rails, this used to be run in exec_extras in vhosts.pl;
# however, now we use exec_before_down and exec_while_down instead, so
# this is here for compatability with alternative deploy scripts that
# still call rails-post-deploy.
#
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: hello@mysociety.org; WWW: http://www.mysociety.org/

set -e
#set -x # debug

TOP_DIR="$(dirname "$BASH_SOURCE")/.."
cd "$TOP_DIR"

"$TOP_DIR/script/rails-deploy-before-down"
"$TOP_DIR/script/rails-deploy-while-down"