diff options
author | msquare <msquare@notrademark.de> | 2018-08-12 12:42:58 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-08-12 12:42:58 +0200 |
commit | df30f7d5d89d8de3f61905d8e25eb361a06faa7f (patch) | |
tree | c9c07c9133b266224f1e91e7aabc4c40bf27f67d /deploy.sh | |
parent | c55ae7c3190e48180371bab8f4d7ab4c5726ff13 (diff) | |
parent | b409d2986fcca5bcafdad4b3b33094c12d8530a6 (diff) |
merge pr #427: Use npm to handle frontend dependencies
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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}/" @@ -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\" |