Created
July 18, 2015 17:26
-
-
Save bfritscher/1b9900de04168c288b02 to your computer and use it in GitHub Desktop.
pull cgi (use www-data)
This file contains hidden or 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
# apt-get install fcgiwrap | |
location /cgi-bin/ { | |
gzip off; | |
root /var/www; | |
fastcgi_pass unix:/var/run/fcgiwrap.socket; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} |
This file contains hidden or 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
#!/bin/bash | |
echo "Content-type: text/plain" | |
echo | |
echo "Checking for updates..." | |
cd /var/www/html | |
echo "$(git pull 2>&1)" | |
echo "$(git log)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment