aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorIndrajith K L2022-08-29 01:38:44 +0530
committerIndrajith K L2022-08-29 01:38:44 +0530
commit08ee15db22ea4a8c90816caea21c8510a03a7678 (patch)
tree02782ce7b7baa55ada8d94c92a0df5a2dd7556c4 /deploy.sh
parentbb799d4f648c9f138dcb706f5e6403feccb93996 (diff)
downloadindrajith-dev-08ee15db22ea4a8c90816caea21c8510a03a7678.tar.gz
indrajith-dev-08ee15db22ea4a8c90816caea21c8510a03a7678.tar.bz2
indrajith-dev-08ee15db22ea4a8c90816caea21c8510a03a7678.zip
Build script fixes
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