Skip to content
View raw
1
2
3
remote_app='mpeter@192.162.71.223:/home/mpeter/apps/farm-manager'
4
remote_static='mpeter@192.162.71.223:/var/www/apps.mlnp.fr'
5
6
echo Deploying app:
7
rsync -azvP . $remote_app --chown=mpeter:www-data\
8
--exclude={'.venv','.git','app/__pycache__',}\
9
--exclude 'app/fapg.db*' # Files
10
if [ $? -eq 0 ]; then echo App deployed to $remote_app; fi
11
12
echo Deploying static files:
13
rsync -azvP ./app/static $remote_static --chown=mpeter:www-data
14
if [ $? -eq 0 ]; then echo Static files to $remote_static; fi
15