{"action":"created","issue":{"url":"https://api.github.com/repos/habitat-sh/core-plans/issues/1527","repository_url":"https://api.github.com/repos/habitat-sh/core-plans","labels_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/1527/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/1527/comments","events_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/1527/events","html_url":"https://github.com/habitat-sh/core-plans/pull/1527","id":322619047,"number":1527,"title":"[libfcgi] Add libfcgi","user":{"login":"themightychris","id":458494,"avatar_url":"https://avatars0.githubusercontent.com/u/458494?v=4","gravatar_id":"","url":"https://api.github.com/users/themightychris","html_url":"https://github.com/themightychris","followers_url":"https://api.github.com/users/themightychris/followers","following_url":"https://api.github.com/users/themightychris/following{/other_user}","gists_url":"https://api.github.com/users/themightychris/gists{/gist_id}","starred_url":"https://api.github.com/users/themightychris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themightychris/subscriptions","organizations_url":"https://api.github.com/users/themightychris/orgs","repos_url":"https://api.github.com/users/themightychris/repos","events_url":"https://api.github.com/users/themightychris/events{/privacy}","received_events_url":"https://api.github.com/users/themightychris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-13T19:08:29Z","updated_at":"2018-05-14T16:36:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/habitat-sh/core-plans/pulls/1527","html_url":"https://github.com/habitat-sh/core-plans/pull/1527","diff_url":"https://github.com/habitat-sh/core-plans/pull/1527.diff","patch_url":"https://github.com/habitat-sh/core-plans/pull/1527.patch"},"body":"The binary is this package is useful for health checking a FastCGI application without a web server running: https://easyengine.io/tutorials/php/directly-connect-php-fpm/\r\n\r\nHere's how you might use it in the `health_check` hook for a PHP-FPM application:\r\n\r\n```bash\r\n#!/bin/bash -e\r\n\r\n{{#if cfg.path.ping}}\r\n    SCRIPT_NAME=\"{{ cfg.path.ping }}\" \\\r\n    SCRIPT_FILENAME=\"{{ cfg.path.ping }}\" \\\r\n    REQUEST_METHOD=\"GET\" \\\r\n        {{pkgPathFor \"core/libfcgi\"}}/bin/cgi-fcgi \\\r\n            -bind \\\r\n            -connect {{ sys.ip }}:{{ cfg.network.port }} \\\r\n        | grep pong\r\n{{/if}}\r\n```"},"comment":{"url":"https://api.github.com/repos/habitat-sh/core-plans/issues/comments/388881665","html_url":"https://github.com/habitat-sh/core-plans/pull/1527#issuecomment-388881665","issue_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/1527","id":388881665,"user":{"login":"nellshamrell","id":813007,"avatar_url":"https://avatars3.githubusercontent.com/u/813007?v=4","gravatar_id":"","url":"https://api.github.com/users/nellshamrell","html_url":"https://github.com/nellshamrell","followers_url":"https://api.github.com/users/nellshamrell/followers","following_url":"https://api.github.com/users/nellshamrell/following{/other_user}","gists_url":"https://api.github.com/users/nellshamrell/gists{/gist_id}","starred_url":"https://api.github.com/users/nellshamrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nellshamrell/subscriptions","organizations_url":"https://api.github.com/users/nellshamrell/orgs","repos_url":"https://api.github.com/users/nellshamrell/repos","events_url":"https://api.github.com/users/nellshamrell/events{/privacy}","received_events_url":"https://api.github.com/users/nellshamrell/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T16:36:42Z","updated_at":"2018-05-14T16:36:42Z","author_association":"CONTRIBUTOR","body":"@themightychris - the PR that @rsertelon is referring to is https://github.com/habitat-sh/core-plans/pull/1146"}}
{"actor":{"display_login":"nellshamrell"}}