forked from ajpierce/pi_alarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Loading content onto Pi from GitHub
Thomas Lamb edited this page Apr 8, 2018
·
3 revisions
- Grab the repository clone URL from GitHub
- then SSH into Pi
- Create a folder to store the project... say maybe
/git/pi_alarm_prod
sudo mkdir /git
sudo mkdir /git/pi_alarm_prod
- Install Git
sudo apt-get install git
- run
sudo git clone <clone URL> /git/pi_alarm_prod
- Make a symbolic link to the
/var/www
directory:
sudo ln -sfd /git/pi_alarm_prod/app /var/www
- 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