aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rw-r--r--deploy.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 5e5053f..64bf7d6 100644
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,4 +1,8 @@
#!/usr/bin/zsh
npm run build
cd public
-mv -v -f ./* /var/www/html \ No newline at end of file
+PROJECTDIR=$(pwd)
+cd /var/www/html
+rm -R ./*
+cd $PROJECTDIR
+cp -rp ./* /var/www/html/ \ No newline at end of file