diff options
Diffstat (limited to 'scripts/post-deploy.sh')
-rwxr-xr-x | scripts/post-deploy.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/post-deploy.sh b/scripts/post-deploy.sh new file mode 100755 index 0000000..4d3fd9c --- /dev/null +++ b/scripts/post-deploy.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -ex + + +export PATH="$HOME/opt/bin:$PATH" + +source "$HOME/production-config/env" + +echo 'Moving files...' + +mv "$REMOTE_PUBLIC_WWW/fulfillment" "$REMOTE_PUBLIC_WWW/fulfillment.fcgi" +mv "$REMOTE_PUBLIC_WWW/license" "$REMOTE_PUBLIC_WWW/license.fcgi" + +mv production-config/.htaccess "$REMOTE_PUBLIC_WWW" + + +echo 'Provisioning...' + +sh "$HOME/scripts/provision.sh" + + +echo 'Migrating database...' + +migrate-up |