From 08ee15db22ea4a8c90816caea21c8510a03a7678 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 29 Aug 2022 01:38:44 +0530 Subject: Build script fixes --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3