[Flask] Simple ERP for a farm.
Improved deployment script.
deploy.sh
@@ -7,7 +7,8 @@
7
7
rsync -azvP . $remote_app --chown=mpeter:www-data\
8
8
--exclude={'.venv','.git','app/__pycache__',}\
9
9
--exclude 'app/fapg.db*' # Files
10
Added:
if [ $? -eq 0 ]; then echo App deployed to $remote_app; fi
11
Added:
10
12
echo Deploying static files:
11
13
rsync -azvP ./app/static $remote_static --chown=mpeter:www-data
12
Removed:
echo App deployed to $remote_app
13
Removed:
echo Static files to $remote_static.
14
Added:
if [ $? -eq 0 ]; then echo Static files to $remote_static.; fi