diff options
author | Marius Peter <marius.peter@tutanota.com> | 2024-01-02 19:50:22 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2024-01-02 19:50:22 +0100 |
commit | 805c6b911e4d1ebb4e5e951092fa284705aa1f66 (patch) | |
tree | 1e255d99ad5dcb23f73743af468e2c484e34a451 | |
parent | 008b1b496070d9549707d7dd8c28175692eacf10 (diff) |
Improved deployment script.
-rwxr-xr-x | deploy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |