mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-21 03:55:39 +02:00
15 lines
318 B
Bash
15 lines
318 B
Bash
|
#!/bin/sh
|
||
|
# rsync files to server and reload
|
||
|
|
||
|
# HOST: replace with your real data
|
||
|
HOST='pi@192.168.100.10'
|
||
|
|
||
|
echo "RSYNCING in 3secs..."
|
||
|
sleep 3
|
||
|
|
||
|
rsync -av --exclude '.git' --exclude '__pycache__' --exclude '*.pyc' --exclude '*.sqlite' * $HOST:/app/
|
||
|
|
||
|
# ask python server to reload sources
|
||
|
ssh $HOST touch /app/VERSION
|
||
|
|