{"action":"created","comment":{"url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/comments/227811694","pull_request_review_id":167937531,"id":227811694,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzgxMTY5NA==","diff_hunk":"@@ -1,4 +1,4 @@\n PYTHONUNBUFFERED=TRUE\n-FLASK_APP=psi.wsgi:application\n+FLASK_APP=psi.cli:application","path":".env","position":3,"original_position":3,"commit_id":"f4be01b3132fd8f1d3d7a3c3fef0c1dacfbfa94c","original_commit_id":"f4be01b3132fd8f1d3d7a3c3fef0c1dacfbfa94c","user":{"login":"johnbenjaminlewis","id":4713146,"node_id":"MDQ6VXNlcjQ3MTMxNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4713146?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbenjaminlewis","html_url":"https://github.com/johnbenjaminlewis","followers_url":"https://api.github.com/users/johnbenjaminlewis/followers","following_url":"https://api.github.com/users/johnbenjaminlewis/following{/other_user}","gists_url":"https://api.github.com/users/johnbenjaminlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbenjaminlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbenjaminlewis/subscriptions","organizations_url":"https://api.github.com/users/johnbenjaminlewis/orgs","repos_url":"https://api.github.com/users/johnbenjaminlewis/repos","events_url":"https://api.github.com/users/johnbenjaminlewis/events{/privacy}","received_events_url":"https://api.github.com/users/johnbenjaminlewis/received_events","type":"User","site_admin":false},"body":"The `psi/wsgi.py` file should only be used for the Gunicorn/WSGI HTTP server. All else should go through the CLI.\r\n\r\nThis shouldn't break your Heroku deploy since Gunicorn is invoked separately via `Procfile` command","created_at":"2018-10-24T14:25:10Z","updated_at":"2018-10-24T14:35:58Z","html_url":"https://github.com/betterlife/betterlifepsi/pull/504#discussion_r227811694","pull_request_url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/comments/227811694"},"html":{"href":"https://github.com/betterlife/betterlifepsi/pull/504#discussion_r227811694"},"pull_request":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504","id":225423665,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDIzNjY1","html_url":"https://github.com/betterlife/betterlifepsi/pull/504","diff_url":"https://github.com/betterlife/betterlifepsi/pull/504.diff","patch_url":"https://github.com/betterlife/betterlifepsi/pull/504.patch","issue_url":"https://api.github.com/repos/betterlife/betterlifepsi/issues/504","number":504,"state":"open","locked":false,"title":"Cleaning up entrypoints - removing circular dependency and adding manage.py","user":{"login":"johnbenjaminlewis","id":4713146,"node_id":"MDQ6VXNlcjQ3MTMxNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4713146?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbenjaminlewis","html_url":"https://github.com/johnbenjaminlewis","followers_url":"https://api.github.com/users/johnbenjaminlewis/followers","following_url":"https://api.github.com/users/johnbenjaminlewis/following{/other_user}","gists_url":"https://api.github.com/users/johnbenjaminlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbenjaminlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbenjaminlewis/subscriptions","organizations_url":"https://api.github.com/users/johnbenjaminlewis/orgs","repos_url":"https://api.github.com/users/johnbenjaminlewis/repos","events_url":"https://api.github.com/users/johnbenjaminlewis/events{/privacy}","received_events_url":"https://api.github.com/users/johnbenjaminlewis/received_events","type":"User","site_admin":false},"body":"I am Dockerizing this application. This pull request is the work needed before we can Dockerize\r\n\r\nAdding some comments inline, but the high level is this:\r\n\r\n* I added back manage.py because the documentation still references it. All it does is tell you how to invoke the `flask` utility script\r\n* The files `psi/cli.py` and `psi/wsgi.py` were circularly dependent- that's fixed\r\n* Fixed $PATH modification- only append to $PATH if `psi` package import fails\r\n* Moved migration directory to root directory (since `psi/` isn't in $PATH but the root is)\r\n* Always initialize Flask-Migrate extension, but don't always run migrations","created_at":"2018-10-24T14:21:42Z","updated_at":"2018-10-24T14:35:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fbe6a73861d34c9b8d048b270d8cec4daf7465e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504/commits","review_comments_url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504/comments","review_comment_url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betterlife/betterlifepsi/issues/504/comments","statuses_url":"https://api.github.com/repos/betterlife/betterlifepsi/statuses/f4be01b3132fd8f1d3d7a3c3fef0c1dacfbfa94c","head":{"label":"johnbenjaminlewis:entrypoint","ref":"entrypoint","sha":"f4be01b3132fd8f1d3d7a3c3fef0c1dacfbfa94c","user":{"login":"johnbenjaminlewis","id":4713146,"node_id":"MDQ6VXNlcjQ3MTMxNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4713146?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbenjaminlewis","html_url":"https://github.com/johnbenjaminlewis","followers_url":"https://api.github.com/users/johnbenjaminlewis/followers","following_url":"https://api.github.com/users/johnbenjaminlewis/following{/other_user}","gists_url":"https://api.github.com/users/johnbenjaminlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbenjaminlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbenjaminlewis/subscriptions","organizations_url":"https://api.github.com/users/johnbenjaminlewis/orgs","repos_url":"https://api.github.com/users/johnbenjaminlewis/repos","events_url":"https://api.github.com/users/johnbenjaminlewis/events{/privacy}","received_events_url":"https://api.github.com/users/johnbenjaminlewis/received_events","type":"User","site_admin":false},"repo":{"id":154191472,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxOTE0NzI=","name":"betterlifepsi","full_name":"johnbenjaminlewis/betterlifepsi","private":false,"owner":{"login":"johnbenjaminlewis","id":4713146,"node_id":"MDQ6VXNlcjQ3MTMxNDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4713146?v=4","gravatar_id":"","url":"https://api.github.com/users/johnbenjaminlewis","html_url":"https://github.com/johnbenjaminlewis","followers_url":"https://api.github.com/users/johnbenjaminlewis/followers","following_url":"https://api.github.com/users/johnbenjaminlewis/following{/other_user}","gists_url":"https://api.github.com/users/johnbenjaminlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbenjaminlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbenjaminlewis/subscriptions","organizations_url":"https://api.github.com/users/johnbenjaminlewis/orgs","repos_url":"https://api.github.com/users/johnbenjaminlewis/repos","events_url":"https://api.github.com/users/johnbenjaminlewis/events{/privacy}","received_events_url":"https://api.github.com/users/johnbenjaminlewis/received_events","type":"User","site_admin":false},"html_url":"https://github.com/johnbenjaminlewis/betterlifepsi","description":"Betterlife Intelligent PSI(Purchase, Sales and Inventory) system","fork":true,"url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi","forks_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/forks","keys_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/teams","hooks_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/hooks","issue_events_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/issues/events{/number}","events_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/events","assignees_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/assignees{/user}","branches_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/branches{/branch}","tags_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/tags","blobs_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/statuses/{sha}","languages_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/languages","stargazers_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/stargazers","contributors_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/contributors","subscribers_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/subscribers","subscription_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/subscription","commits_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/contents/{+path}","compare_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/merges","archive_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/downloads","issues_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/issues{/number}","pulls_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/pulls{/number}","milestones_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/milestones{/number}","notifications_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/labels{/name}","releases_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/releases{/id}","deployments_url":"https://api.github.com/repos/johnbenjaminlewis/betterlifepsi/deployments","created_at":"2018-10-22T18:04:18Z","updated_at":"2018-10-22T18:04:21Z","pushed_at":"2018-10-24T14:19:50Z","git_url":"git://github.com/johnbenjaminlewis/betterlifepsi.git","ssh_url":"git@github.com:johnbenjaminlewis/betterlifepsi.git","clone_url":"https://github.com/johnbenjaminlewis/betterlifepsi.git","svn_url":"https://github.com/johnbenjaminlewis/betterlifepsi","homepage":"","size":3312,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"betterlife:master","ref":"master","sha":"99cecb9159ad1ad280026e1e019e59b715727d6d","user":{"login":"betterlife","id":6047592,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwNDc1OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6047592?v=4","gravatar_id":"","url":"https://api.github.com/users/betterlife","html_url":"https://github.com/betterlife","followers_url":"https://api.github.com/users/betterlife/followers","following_url":"https://api.github.com/users/betterlife/following{/other_user}","gists_url":"https://api.github.com/users/betterlife/gists{/gist_id}","starred_url":"https://api.github.com/users/betterlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterlife/subscriptions","organizations_url":"https://api.github.com/users/betterlife/orgs","repos_url":"https://api.github.com/users/betterlife/repos","events_url":"https://api.github.com/users/betterlife/events{/privacy}","received_events_url":"https://api.github.com/users/betterlife/received_events","type":"Organization","site_admin":false},"repo":{"id":37696073,"node_id":"MDEwOlJlcG9zaXRvcnkzNzY5NjA3Mw==","name":"betterlifepsi","full_name":"betterlife/betterlifepsi","private":false,"owner":{"login":"betterlife","id":6047592,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwNDc1OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/6047592?v=4","gravatar_id":"","url":"https://api.github.com/users/betterlife","html_url":"https://github.com/betterlife","followers_url":"https://api.github.com/users/betterlife/followers","following_url":"https://api.github.com/users/betterlife/following{/other_user}","gists_url":"https://api.github.com/users/betterlife/gists{/gist_id}","starred_url":"https://api.github.com/users/betterlife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betterlife/subscriptions","organizations_url":"https://api.github.com/users/betterlife/orgs","repos_url":"https://api.github.com/users/betterlife/repos","events_url":"https://api.github.com/users/betterlife/events{/privacy}","received_events_url":"https://api.github.com/users/betterlife/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/betterlife/betterlifepsi","description":"Betterlife Intelligent PSI(Purchase, Sales and Inventory) system","fork":false,"url":"https://api.github.com/repos/betterlife/betterlifepsi","forks_url":"https://api.github.com/repos/betterlife/betterlifepsi/forks","keys_url":"https://api.github.com/repos/betterlife/betterlifepsi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betterlife/betterlifepsi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betterlife/betterlifepsi/teams","hooks_url":"https://api.github.com/repos/betterlife/betterlifepsi/hooks","issue_events_url":"https://api.github.com/repos/betterlife/betterlifepsi/issues/events{/number}","events_url":"https://api.github.com/repos/betterlife/betterlifepsi/events","assignees_url":"https://api.github.com/repos/betterlife/betterlifepsi/assignees{/user}","branches_url":"https://api.github.com/repos/betterlife/betterlifepsi/branches{/branch}","tags_url":"https://api.github.com/repos/betterlife/betterlifepsi/tags","blobs_url":"https://api.github.com/repos/betterlife/betterlifepsi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betterlife/betterlifepsi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betterlife/betterlifepsi/git/refs{/sha}","trees_url":"https://api.github.com/repos/betterlife/betterlifepsi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betterlife/betterlifepsi/statuses/{sha}","languages_url":"https://api.github.com/repos/betterlife/betterlifepsi/languages","stargazers_url":"https://api.github.com/repos/betterlife/betterlifepsi/stargazers","contributors_url":"https://api.github.com/repos/betterlife/betterlifepsi/contributors","subscribers_url":"https://api.github.com/repos/betterlife/betterlifepsi/subscribers","subscription_url":"https://api.github.com/repos/betterlife/betterlifepsi/subscription","commits_url":"https://api.github.com/repos/betterlife/betterlifepsi/commits{/sha}","git_commits_url":"https://api.github.com/repos/betterlife/betterlifepsi/git/commits{/sha}","comments_url":"https://api.github.com/repos/betterlife/betterlifepsi/comments{/number}","issue_comment_url":"https://api.github.com/repos/betterlife/betterlifepsi/issues/comments{/number}","contents_url":"https://api.github.com/repos/betterlife/betterlifepsi/contents/{+path}","compare_url":"https://api.github.com/repos/betterlife/betterlifepsi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betterlife/betterlifepsi/merges","archive_url":"https://api.github.com/repos/betterlife/betterlifepsi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betterlife/betterlifepsi/downloads","issues_url":"https://api.github.com/repos/betterlife/betterlifepsi/issues{/number}","pulls_url":"https://api.github.com/repos/betterlife/betterlifepsi/pulls{/number}","milestones_url":"https://api.github.com/repos/betterlife/betterlifepsi/milestones{/number}","notifications_url":"https://api.github.com/repos/betterlife/betterlifepsi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betterlife/betterlifepsi/labels{/name}","releases_url":"https://api.github.com/repos/betterlife/betterlifepsi/releases{/id}","deployments_url":"https://api.github.com/repos/betterlife/betterlifepsi/deployments","created_at":"2015-06-19T02:00:10Z","updated_at":"2018-10-23T05:54:12Z","pushed_at":"2018-10-24T14:21:43Z","git_url":"git://github.com/betterlife/betterlifepsi.git","ssh_url":"git@github.com:betterlife/betterlifepsi.git","clone_url":"https://github.com/betterlife/betterlifepsi.git","svn_url":"https://github.com/betterlife/betterlifepsi","homepage":"","size":3288,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":34,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504"},"html":{"href":"https://github.com/betterlife/betterlifepsi/pull/504"},"issue":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/issues/504"},"comments":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/betterlife/betterlifepsi/statuses/f4be01b3132fd8f1d3d7a3c3fef0c1dacfbfa94c"}},"author_association":"NONE"}}
{"actor":{"display_login":"johnbenjaminlewis"}}