summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-03 05:09:11 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-03 12:56:33 +0200
commit608fb3dad69e9f79283dd350639c2596379539a0 (patch)
tree13c1d62bebaa281b3630346206d1e46bf9920ab7 /deploy.sh
parentccd061d3cb2136b195a4f33adc1391c0042415ef (diff)
Updated .gitlab-ci.yaml and other files to build the frontend
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index f1569a61..9aa72ff5 100755
--- a/deploy.sh
+++ b/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 node_modules/ \
-e "ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" \
./ "${remote_host}:${remote_path}/${deploy_id}/"
@@ -63,7 +63,8 @@ ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "${remote_hos
fi
echo \"Changing symlink\"
- unlink \"${remote_path}/current\" && ln -s \"${remote_path}/${deploy_id}\" \"${remote_path}/current\"
+ unlink_cmd=\$(command -v unlink || command -v rm)
+ \$unlink_cmd \"${remote_path}/current\" && ln -s \"${remote_path}/${deploy_id}\" \"${remote_path}/current\"
if [[ -f \"${deploy_id}-config.php\" ]]; then
echo \"Restoring config\"