diff options
author | Marius Peter <marius.peter@tutanota.com> | 2022-07-24 16:05:13 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2022-07-24 16:05:13 +0200 |
commit | 400a27ad965d49ff6a1df706010b212a78259d32 (patch) | |
tree | 492d96fdfcd883ea99be382e18c9c1b1fb27ed89 /deploy.sh | |
parent | 146d4625c1cb30f76f3e5d48dc4556d24f706ec7 (diff) |
deploy and wsgi.
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,7 +1,13 @@ #! /bin/bash -remote='root@192.162.71.223:/var/www/apps.mlnp.fr/mdl' +remote_app='mpeter@192.162.71.223:/home/mpeter/apps/mdl' +remote_static='mpeter@192.162.71.223:/var/www/apps.mlnp.fr' -echo Deploying now. -rsync -razvP . $remote -echo successfully deployed. +echo Deploying app: +rsync -azvP . $remote_app --chown=mpeter:www-data\ + --exclude={'.venv','.git','downloads','app/__pycache__',}\ + --exclude 'app/mdl.db' # Files +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. |