default: site
-build site: _site
+hostname = 69.164.210.222
+sitename = disinclined.org
+
+build site:
git submodule update
cp ~/src/resume/resume.{pdf,html} .
- bundle exec jekyll build -d disinclined.org --trace
+ bundle exec jekyll build -d $(sitename) --trace
serve:
bundle exec jekyll serve --trace --verbose --livereload
upgrade:
bundle update
+
+deploy:
+ tar -czf $(sitename).tgz $(sitename)
+ scp $(sitename).tgz $(hostname):
+ ssh -t $(hostname) tar -xf $(sitename).tgz
+ ssh -t $(hostname) sudo rsync -a ~dylan/$(sitename) /srv/http/
+ rm $(sitename).tgz
+
+fix-git-permissions:
+ ssh -t $(hostname) sudo -u git /var/lib/gitolite3/update-permissions