ledstrip_sandbox/deploy_frontend.sh

5 lines
287 B
Bash
Executable File

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"