summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deploy.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/bin/deploy.sh b/bin/deploy.sh
index f1569a61..48808d5b 100755
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -50,7 +50,7 @@ fi
echo "syncing ${PWD}/ to ${remote_host}:${remote_path}/${deploy_id}/"
-rsync -vAax --exclude '.git*' --exclude .composer/ \
+rsync -vAax --exclude '.git*' --exclude .composer/ --exclude coverage/ --exclude node_modules/ \
-e "ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" \
./ "${remote_host}:${remote_path}/${deploy_id}/"
@@ -58,15 +58,13 @@ ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "${remote_hos
set -e
if [[ -f \"${remote_path}/current/config/config.php\" ]]; then
- echo \"Config backup\"
- cp \"${remote_path}/current/config/config.php\" \"${deploy_id}-config.php\"
+ echo \"Configuring\"
+ cp \"${remote_path}/current/config/config.php\" \"${remote_path}/${deploy_id}/config/config.php\"
fi
echo \"Changing symlink\"
- unlink \"${remote_path}/current\" && ln -s \"${remote_path}/${deploy_id}\" \"${remote_path}/current\"
+ ln -nsf \"${remote_path}/${deploy_id}\" \"${remote_path}/current\"
- if [[ -f \"${deploy_id}-config.php\" ]]; then
- echo \"Restoring config\"
- cp \"${deploy_id}-config.php\" \"${remote_path}/current/config/config.php\"
- fi
+ echo \"Migrating\"
+ php \"${remote_path}/current/bin/migrate\"
"