aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/deploy.sh b/deploy.sh
index 31397b8..94238d3 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -9,9 +9,8 @@ fi
echo "Copying to staging..."
tar -czf blog.tar.gz blog-staging
-scp blog.tar.gz root@fwei.tk:
-ssh root@fwei.tk rm -rf /var/www/html/blog-staging
-ssh root@fwei.tk tar -xzvf blog.tar.gz -C /var/www/html
+scp -v blog.tar.gz root@fwei.tk:
+ssh -v root@fwei.tk "rm -rf /var/www/html/blog-staging ; tar -xzvf blog.tar.gz -C /var/www/html"
rm -f blog.tar.gz
if [[ $# -ge 1 ]] && [[ $1 == "-p" ]]