Small utility uploading and running project on a Raspberry Pi running RPC.
Mainly, it does 3 things :
- retrieve RaspberryPi IPv4 address from RPC.
- copy the files modified since last update to the Raspberry Pi (using scp)
- run the specified make target (or just
makeif no target is specified)
to install, clone this repository with
git clone https://github.com/superpingu/PiRun.gitThen go to the repository root with
cd PiRunFinally install with admin rights with
chmod +x ./install.sh
sudo ./install.shNote : This will install NodeJS, required by PiRun. If you don't have it already, you should definitly take a look at it, it is pretty amazing.
pirun <name of the Pi on RPC> [make target]
If omitted, the default make target is used (equivalent to running make).
You can specify files, folders and patterns not to upload to the Pi, in a .gitignore fashion.
It is advised to add .git folder to the .pirunignore, as the upload system can be slow in case of multiple subfolders (like in the .git folder).