Skip to content

Client deployment guide

callum edited this page Apr 4, 2014 · 5 revisions

On the Pi:

Login and:

mkdir isthetoiletfree.git
cd isthetoiletfree.git
git init --bare
cat >> hooks/post-receive

Paste:

#!/bin/sh

unset GIT_DIR
cd /home/pi/isthetoiletfree
git fetch --all
git reset --hard origin/master
supervisorctl restart ittf

[Ctrl-D] to save and exit.

chmod +x hooks/post-receive
cd
git clone isthetoiletfree.git
cd isthetoiletfree
cat >> .hmac_secret
# Add your HMAC secret [Ctrl-D]

On your machine:

git remote add pi [email protected]:isthetoiletfree.git

That's it. You can now:

git push pi master
Clone this wiki locally