Skip to content

Instantly share code, notes, and snippets.

@bfritscher
Created July 18, 2015 17:26
Show Gist options
  • Save bfritscher/1b9900de04168c288b02 to your computer and use it in GitHub Desktop.
Save bfritscher/1b9900de04168c288b02 to your computer and use it in GitHub Desktop.
pull cgi (use www-data)
# 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;
}
#!/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