Created
September 24, 2020 01:52
-
-
Save toxinu/c74cb29f1da8680f033b6814c3bd6815 to your computer and use it in GitHub Desktop.
blog/jekyll-with-git-and-hooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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