mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-20 19:45:40 +02:00
14 lines
318 B
Bash
Executable file
14 lines
318 B
Bash
Executable file
#!/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
|
|
|