Skip to content

Instantly share code, notes, and snippets.

@toxinu
Created September 24, 2020 01:52
Show Gist options
  • Save toxinu/c74cb29f1da8680f033b6814c3bd6815 to your computer and use it in GitHub Desktop.
Save toxinu/c74cb29f1da8680f033b6814c3bd6815 to your computer and use it in GitHub Desktop.
blog/jekyll-with-git-and-hooks
root@socketubs:/srv/gitosis/repositories/socket_site.git/hooks# cat post-receive
#!/bin/sh
echo "-- Attempting to pull and launch jekyll --"
cd /var/www/socket_site
git --git-dir /var/www/socket_site/.git pull file:///srv/.../socket_site.git/ master
jekyll
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment