ledstrip_sandbox/deploy_frontend.sh

5 lines
287 B
Bash
Raw Normal View History

2021-09-23 21:24:27 +02:00
set -x
zip frontend.zip frontend/*
scp frontend.zip root@10.1.0.212:/tmp/frontend.zip
ssh root@10.1.0.212 "set -x && cd /tmp && unzip -u frontend.zip && cd frontend && rm -r /var/www/html/frontend/* && cp -r * /var/www/html/frontend && chown -R www-data:www-data /var/www/html/frontend"