04f9f5ed97320499d4fc467e131cf7714434c051
[disinclined.org.git] / Makefile
1 default: site
2
3 hostname = 69.164.210.222
4 sitename = disinclined.org
5
6 build site:
7 git submodule update
8 cp ~/src/resume/resume.{pdf,html} .
9 bundle exec jekyll build -d $(sitename) --trace
10
11 serve:
12 bundle exec jekyll serve --trace --verbose --livereload
13
14 upgrade:
15 bundle update
16
17 deploy:
18 tar -czf $(sitename).tgz $(sitename)
19 scp $(sitename).tgz $(hostname):
20 ssh -t $(hostname) tar -xf $(sitename).tgz
21 ssh -t $(hostname) sudo rsync -a ~dylan/$(sitename) /srv/http/
22 rm $(sitename).tgz
23
24 fix-git-permissions:
25 ssh -t $(hostname) sudo -u git /var/lib/gitolite3/update-permissions