Loading content onto Pi from GitHub - ThomasLamb/pi-alarm-clock GitHub Wiki
- Grab the repository clone URL from GitHub
- then SSH into Pi
- Install Git
sudo apt-get install git
- run
sudo git clone <clone URL> /var/wwwin the future may want to change this to be a symbolic link so that I can easily switch between different versions, then maybe we wouldn't need tosudoeach command too? - when you make changes to repository then just need to run
sudo git pull - and finally restart the web services
sudo service nginx restart
sudo service uwsgi restart
- Change directory to the Git folder:
cd /var/www
- Run command to pull latest changes (using
sudobecause the/var/wwwfolder security permissions)
sudo git pull
- Restart the web services
sudo service nginx restart
sudo service uwsgi restart