mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-13 11:52:45 +02:00
feat: add sync to blitz make target
This commit is contained in:
parent
7e2d383ea5
commit
5eb39c52a0
2 changed files with 16 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -8,6 +8,7 @@ help:
|
|||
@echo "To test the project type 'make test'"
|
||||
@echo "To assess test coverage type 'make coverage'"
|
||||
@echo "To generate the requirements.txt file for pip type 'make requirements'"
|
||||
@echo "To sync current changes to a blitz for testing, type 'make sync_to_blitz'. Adjust connection values in scripts/push_to_blitz.sh"
|
||||
@echo "------------------------------------"
|
||||
|
||||
clean:
|
||||
|
|
@ -32,4 +33,7 @@ coverage:
|
|||
python -m coverage html
|
||||
|
||||
requirements:
|
||||
poetry export > requirements.txt
|
||||
poetry export > requirements.txt
|
||||
|
||||
sync_to_blitz:
|
||||
bash scripts/sync_to_blitz.sh
|
||||
11
scripts/sync_to_blitz.sh
Normal file
11
scripts/sync_to_blitz.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Set the IP of the Raspiblitz
|
||||
ip=192.168.1.254
|
||||
|
||||
# admin password, WARNING only use with a dev machine
|
||||
password="your_pw_here"
|
||||
|
||||
local=.
|
||||
remote=admin@$ip:/home/admin/blitz_api
|
||||
|
||||
# Needs sshpass installed
|
||||
sshpass -p "$password" rsync -re ssh --progress $local $remote
|
||||
Loading…
Add table
Add a link
Reference in a new issue