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/www
in 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 tosudo
each 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
sudo
because the/var/www
folder security permissions)
sudo git pull
- Restart the web services
sudo service nginx restart
sudo service uwsgi restart