From 608fb3dad69e9f79283dd350639c2596379539a0 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 3 Aug 2018 05:09:11 +0200 Subject: Updated .gitlab-ci.yaml and other files to build the frontend --- deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deploy.sh') 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\" -- cgit v1.2.3-70-g09d2