From e57d020ae2b697aab2f98a6d802cb2e4c73e7841 Mon Sep 17 00:00:00 2001 From: Benedikt Kuehne Date: Fri, 17 Nov 2023 09:03:22 +0000 Subject: [PATCH] update files instead of force replace to keep migrations --- run-server.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run-server.sh b/run-server.sh index 3ee7e174..ef2e9695 100755 --- a/run-server.sh +++ b/run-server.sh @@ -174,10 +174,7 @@ systemctl enable embark.service systemctl start embark.service # copy django server -if [[ -d /var/www/embark ]]; then - rm -Rf /var/www/embark -fi -cp -R ./embark/ /var/www/embark/ +rsync -r -u --progress --chown=www-embark:sudo ./embark/ /var/www/embark/ # config apache # add all modules we want (mod_ssl mod_auth_basic etc)