mysociety/alaveteli

View on GitHub
script/rails-post-deploy

Summary

Maintainability
Test Coverage
#!/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 compatibility 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"