web

#!/bin/bash  
  
git pull  
  
./buildbydocker.sh test  
  
source=" ./locales ./static ./asset-manifest.json ./favicon.ico ./index.html ./logo.png \  
./logo192.png ./logo512.png ./logo5122.png ./manifest.json ./robots.txt ./WOMwhitepaper.pdf"  
zipfile="dist.zip"  
remotedir="/data/womweb"  
host="testpc"  
  
zip -r $zipfile "dist/"  
scp -r $zipfile root@$host:$remotedir  
rm -f $zipfile  
  
ssh root@$host << eeooff  
cd $remotedir  
rm -rf $source __MACOSX  
unzip -o $zipfile  
mv dist/* ./  
rm -rf dist  
rm -f $zipfile  
eeooff

wap

#!/bin/bash  
  
git pull  
  
./buildbydocker.sh test  
  
source=" ./css ./fonts ./img ./js ./index.html ./favicon.ico"  
zipfile="dist.zip"  
remotedir="/data/womwap"  
host="testpc"  
  
zip -r $zipfile "dist/"  
scp -r $zipfile root@$host:$remotedir  
rm -f $zipfile  
  
ssh root@$host << eeooff  
cd $remotedir  
rm -rf $source __MACOSX  
unzip -o $zipfile  
mv dist/* ./  
rm -rf dist  
rm -f $zipfile  
eeooff

admin

#!/bin/bash  
  
git pull  
  
./buildbydocker.sh test  
  
source=" ./assets ./gva ./js ./index.html"  
zipfile="dist.zip"  
remotedir="/data/womadmin"  
host="testpc"  
  
zip -r $zipfile "dist/"  
scp -r $zipfile root@$host:$remotedir  
rm -f $zipfile  
  
ssh root@$host << eeooff  
cd $remotedir  
rm -rf $source __MACOSX  
unzip -o $zipfile  
mv dist/* ./  
rm -rf dist  
rm -f $zipfile  
eeooff