{"action":"created","issue":{"url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/19","labels_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/19/comments","events_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/19/events","html_url":"https://github.com/carlalexander/debops-wordpress/issues/19","id":103045939,"number":19,"title":"git push crashes php5-fpm","user":{"login":"shawnhooper","id":2073284,"avatar_url":"https://avatars.githubusercontent.com/u/2073284?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnhooper","html_url":"https://github.com/shawnhooper","followers_url":"https://api.github.com/users/shawnhooper/followers","following_url":"https://api.github.com/users/shawnhooper/following{/other_user}","gists_url":"https://api.github.com/users/shawnhooper/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnhooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnhooper/subscriptions","organizations_url":"https://api.github.com/users/shawnhooper/orgs","repos_url":"https://api.github.com/users/shawnhooper/repos","events_url":"https://api.github.com/users/shawnhooper/events{/privacy}","received_events_url":"https://api.github.com/users/shawnhooper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T15:19:42Z","updated_at":"2015-08-25T20:43:14Z","closed_at":null,"body":"I have a bare repo on my server that I push to as a remote.  In the post_receive hook, it copies the contents of the repo to the /var/www/<domain>/ folder.\r\n\r\nMost of the time when doing this, I have to restart the php5-fpm service or I get a 500 series error when going to the site. \r\n\r\nHere's the contents of my post-receive:\r\n\r\n````\r\n#!/bin/bash\r\necho \"Copying site content to web root...\"\r\ngit --work-tree=/var/www/example.com/ --git-dir=/var/repo checkout -f\r\ncd /var/www/example.com/\r\ncomposer update --no-dev\r\necho \"Setting File Ownership\"\r\nchown www-data:www-data /var/www/example.com/* -R\r\necho \"Clearing Varnish Cache...\"\r\nvarnishadm \"ban req.url ~ /\"\r\necho \"Deployment Complete\"\r\necho \"Restart PHP5-FPM\"\r\nservice php5-fpm restart;\r\ntouch /var/www/example.com/index.php\r\necho \"Done\"\r\n````\r\n\r\nRestarting php5-fpm and touching the index.php where both attempts at fixing this problem - but neither have been reliable.  I still have to SSH in and restart the service. "},"comment":{"url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/comments/134734466","html_url":"https://github.com/carlalexander/debops-wordpress/issues/19#issuecomment-134734466","issue_url":"https://api.github.com/repos/carlalexander/debops-wordpress/issues/19","id":134734466,"user":{"login":"carlalexander","id":654684,"avatar_url":"https://avatars.githubusercontent.com/u/654684?v=3","gravatar_id":"","url":"https://api.github.com/users/carlalexander","html_url":"https://github.com/carlalexander","followers_url":"https://api.github.com/users/carlalexander/followers","following_url":"https://api.github.com/users/carlalexander/following{/other_user}","gists_url":"https://api.github.com/users/carlalexander/gists{/gist_id}","starred_url":"https://api.github.com/users/carlalexander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlalexander/subscriptions","organizations_url":"https://api.github.com/users/carlalexander/orgs","repos_url":"https://api.github.com/users/carlalexander/repos","events_url":"https://api.github.com/users/carlalexander/events{/privacy}","received_events_url":"https://api.github.com/users/carlalexander/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T20:43:14Z","updated_at":"2015-08-25T20:43:14Z","body":"Is there anything in the error logs? 500 series error should show up in theory."}}