This is how I update the code on eVOLVER units when we have software updates. I plan to make deployment scripts in the future to streamline this, but if you only have one or two eVOLVERs to update this process is fairly simple.
- Open up a terminal of your choice (I use iTerm).
- Use the
cdcommand to navigate to the eVOLVER server software.
gitto pull the latest version of the code. I have my own fork, so I need to pull the code from an upstream master branch.
git pull origin mastershould work for most setups.
- I like to use the
scpcommand to transfer the files over to the eVOLVER.
scpstands for secure copy - it uses ssh to transfer files between computers on a network. You can also use any GUI based tool - Filezilla is a popular one. I also normaly only transfer the python files, and not the entire evolver directory. The server saves calibration files and other configurations which we don’t want to modify. To transfer only the relevant python files, run the following command:
scp evolver/*.py pi@<eVOLVER_IP>:evolver/evolver
- Now that the files have been updated, the last step is to restart the server so the changes will take effect.
sshover to the evolver and run
sudo supervisorctl. Then enter
restart evolver, and you’re done!