From 805c6b911e4d1ebb4e5e951092fa284705aa1f66 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Tue, 2 Jan 2024 19:50:22 +0100 Subject: Improved deployment script. --- deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2b13543..b5111a3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -7,7 +7,8 @@ echo Deploying app: rsync -azvP . $remote_app --chown=mpeter:www-data\ --exclude={'.venv','.git','app/__pycache__',}\ --exclude 'app/fapg.db*' # Files +if [ $? -eq 0 ]; then echo App deployed to $remote_app; fi + echo Deploying static files: rsync -azvP ./app/static $remote_static --chown=mpeter:www-data -echo App deployed to $remote_app -echo Static files to $remote_static. +if [ $? -eq 0 ]; then echo Static files to $remote_static.; fi -- cgit v1.2.3