{"id":17300455,"url":"https://github.com/atomantic/hapi_playground","last_synced_at":"2025-08-24T14:16:12.494Z","repository":{"id":20869902,"uuid":"24156909","full_name":"atomantic/hapi_playground","owner":"atomantic","description":"Playground and testbed for Hapi server","archived":false,"fork":false,"pushed_at":"2018-07-25T21:17:32.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T03:43:06.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomantic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-17T18:28:58.000Z","updated_at":"2019-04-21T08:59:41.000Z","dependencies_parsed_at":"2022-08-30T14:20:31.707Z","dependency_job_id":null,"html_url":"https://github.com/atomantic/hapi_playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fhapi_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fhapi_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fhapi_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomantic%2Fhapi_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomantic","download_url":"https://codeload.github.com/atomantic/hapi_playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245743435,"owners_count":20665092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T11:28:39.853Z","updated_at":"2025-03-26T22:13:36.119Z","avatar_url":"https://github.com/atomantic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Hapi.js Playground\n\n\n## Testing PM2 issue 744\n\nhttps://github.com/Unitech/PM2/issues/744\n\nCurrently testing PM2 watch with Hapi on CentOS 6.5 (seems to be working on OSX fine)\n\n```\n# setup\nnpm install git://github.com/Unitech/pm2#master -g\nnode -v # should be 0.10.32\npm2 -v # should be 0.11.0\ntail -f ~/.pm2/pm2.log\u0026\n\n# app\ngit clone git://github.com/atomantic/hapi_playground.git\ncd hapi_playground\nnpm install\npm2 start process.json\n\n# test\ncurl -m 5 http://localhost:46100\nsed -i 's/Hello Hapi/Hello Hapi 1/' index.js\ncurl -m 5 http://localhost:46100\nsed -i 's/Hello Hapi 1/Hello Hapi 2/' index.js\ncurl -m 5 http://localhost:46100\n```\nSo far, all good...\n\nBut now, let's wipe it and try again...\n```\npm2 kill;\ncd ../;\nrm -rf hapi_playground;\ngit clone git://github.com/atomantic/hapi_playground.git\ncd hapi_playground\nnpm install\npm2 start process.json\ncurl -m 5 http://localhost:46100\nsed -i 's/Hello Hapi/Hello Hapi 1/' index.js\ncurl -m 5 http://localhost:46100\n```\nThis time the curl fails:\n\n```\ncurl: (28) Operation timed out after 5000 milliseconds with 0 bytes received\n```\n\nIf it doesn't, let's try another modification:\n\nLet's add memcached:\n\n```\npm2 kill\ngit checkout index.js;\nsed -i 's/\\/\\/var memcached/var memcached/' index.js\npm2 start process.json\ncurl -m 5 http://localhost:46100\nsed -i 's/Hello Hapi/Hello Hapi 1/' index.js\ncurl -m 5 http://localhost:46100\n```\n\nCurls should work without returning (do they?): \n```\ncurl: (28) Operation timed out after 5000 milliseconds with 0 bytes received\n```\n\n\n\n## Testing memory leaks (OSX)\n\n```\ngit clone git://github.com/atomantic/hapi_playground.git\ncd hapi_playground\nnpm install\nnpm install -g pm2 node-inspector\ngulp test\npm2 start process.json\npm2 monit\n```\n\nin another terminal type\n\n```\nbrew install watch\nwatch curl http://localhost:3666\n```\n\nsee if the memory increases on every request\n\n## or Debug\n\n```\nnode --debug index.js \u0026\u0026 node-inspector\nopen http://127.0.0.1:8080/debug?port=5858\n\n```\n\nhttps://github.com/felixge/node-memory-leak-tutorial","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomantic%2Fhapi_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomantic%2Fhapi_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomantic%2Fhapi_playground/lists"}