summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: b5111a3ca11ee6513d46a237b170c0781b9ad65c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

remote_app='mpeter@192.162.71.223:/home/mpeter/apps/farm-manager'
remote_static='mpeter@192.162.71.223:/var/www/apps.mlnp.fr'

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
if [ $? -eq 0 ]; then echo Static files to $remote_static.; fi
Copyright 2019--2024 Marius PETER