Loading content onto Pi from GitHub - ThomasLamb/pi-alarm-clock GitHub Wiki

Initial Setup

  1. Grab the repository clone URL from GitHub
  2. then SSH into Pi
  3. Install Git
sudo apt-get install git
  1. 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 to sudo each command too?
  2. when you make changes to repository then just need to run sudo git pull
  3. and finally restart the web services
sudo service nginx restart
sudo service uwsgi restart

Getting recent changes

  1. Change directory to the Git folder:
cd /var/www
  1. Run command to pull latest changes (using sudo because the /var/www folder security permissions)
sudo git pull
  1. Restart the web services
sudo service nginx restart
sudo service uwsgi restart
⚠️ **GitHub.com Fallback** ⚠️