#!/usr/bin/env sh
/data/repo/photonicat-web/bin/build_on_server.sh
cd /data/novotech-docker
docker-compose down
docker-compose up -d
docker cp photonicat_app:/home/app/photonicat/config/nginx/photonicat.conf /etc/nginx/sites-enabled/photonicat.com
cd /var/www/photonicat
rm -rf assets
docker cp photonicat_app:/home/app/photonicat/public/assets .
cd assets
rsync --rsh='ssh -p60055' --delete -zav . root@cnstatic.ariaboard.com:/var/www/html/assets
rsync --rsh='ssh -p60055' --delete -zav . root@g77k.com:/var/www/html/assets
service nginx restart
