{"action":"created","comment":{"url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/comments/29265322","id":29265322,"diff_hunk":"@@ -20,7 +22,22 @@ app.start = function () {\n \n // Bootstrap the application, configure models, datasources and middleware.\n // Sub-apps like REST API are mounted via boot scripts.\n-boot(app, __dirname, function (err) {\n+var bootOptions = {appRootDir: __dirname};\n+\n+//Enable database seed if not disabled\n+if (process.env.DB_SEED_DISABLED) {","path":"server/server.js","position":17,"original_position":17,"commit_id":"07e95164894f71b2479476a9b5761a2ce8bfd1bd","original_commit_id":"07e95164894f71b2479476a9b5761a2ce8bfd1bd","user":{"login":"kennethlynne","id":390817,"avatar_url":"https://avatars.githubusercontent.com/u/390817?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethlynne","html_url":"https://github.com/kennethlynne","followers_url":"https://api.github.com/users/kennethlynne/followers","following_url":"https://api.github.com/users/kennethlynne/following{/other_user}","gists_url":"https://api.github.com/users/kennethlynne/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethlynne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethlynne/subscriptions","organizations_url":"https://api.github.com/users/kennethlynne/orgs","repos_url":"https://api.github.com/users/kennethlynne/repos","events_url":"https://api.github.com/users/kennethlynne/events{/privacy}","received_events_url":"https://api.github.com/users/kennethlynne/received_events","type":"User","site_admin":false},"body":"`!process.env.DB_SEED_DISABLED` ?","created_at":"2015-04-28T17:16:38Z","updated_at":"2015-04-28T17:16:38Z","html_url":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34#discussion_r29265322","pull_request_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/comments/29265322"},"html":{"href":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34#discussion_r29265322"},"pull_request":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34","id":34283524,"html_url":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34","diff_url":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34.diff","patch_url":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34.patch","issue_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/34","number":34,"state":"open","locked":false,"title":"Feature(schoolify and seed)","user":{"login":"AlmaasAre","id":1777366,"avatar_url":"https://avatars.githubusercontent.com/u/1777366?v=3","gravatar_id":"","url":"https://api.github.com/users/AlmaasAre","html_url":"https://github.com/AlmaasAre","followers_url":"https://api.github.com/users/AlmaasAre/followers","following_url":"https://api.github.com/users/AlmaasAre/following{/other_user}","gists_url":"https://api.github.com/users/AlmaasAre/gists{/gist_id}","starred_url":"https://api.github.com/users/AlmaasAre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlmaasAre/subscriptions","organizations_url":"https://api.github.com/users/AlmaasAre/orgs","repos_url":"https://api.github.com/users/AlmaasAre/repos","events_url":"https://api.github.com/users/AlmaasAre/events{/privacy}","received_events_url":"https://api.github.com/users/AlmaasAre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-28T16:11:09Z","updated_at":"2015-04-28T17:16:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99dec0d88226b195148f40567641086407d2822e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34/commits","review_comments_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34/comments","review_comment_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/34/comments","statuses_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/statuses/07e95164894f71b2479476a9b5761a2ce8bfd1bd","head":{"label":"EdtechFoundry:feature(schoolify-and-seed)","ref":"feature(schoolify-and-seed)","sha":"07e95164894f71b2479476a9b5761a2ce8bfd1bd","user":{"login":"EdtechFoundry","id":10948595,"avatar_url":"https://avatars.githubusercontent.com/u/10948595?v=3","gravatar_id":"","url":"https://api.github.com/users/EdtechFoundry","html_url":"https://github.com/EdtechFoundry","followers_url":"https://api.github.com/users/EdtechFoundry/followers","following_url":"https://api.github.com/users/EdtechFoundry/following{/other_user}","gists_url":"https://api.github.com/users/EdtechFoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/EdtechFoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdtechFoundry/subscriptions","organizations_url":"https://api.github.com/users/EdtechFoundry/orgs","repos_url":"https://api.github.com/users/EdtechFoundry/repos","events_url":"https://api.github.com/users/EdtechFoundry/events{/privacy}","received_events_url":"https://api.github.com/users/EdtechFoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":33208390,"name":"edtech-seed-project-api","full_name":"EdtechFoundry/edtech-seed-project-api","owner":{"login":"EdtechFoundry","id":10948595,"avatar_url":"https://avatars.githubusercontent.com/u/10948595?v=3","gravatar_id":"","url":"https://api.github.com/users/EdtechFoundry","html_url":"https://github.com/EdtechFoundry","followers_url":"https://api.github.com/users/EdtechFoundry/followers","following_url":"https://api.github.com/users/EdtechFoundry/following{/other_user}","gists_url":"https://api.github.com/users/EdtechFoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/EdtechFoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdtechFoundry/subscriptions","organizations_url":"https://api.github.com/users/EdtechFoundry/orgs","repos_url":"https://api.github.com/users/EdtechFoundry/repos","events_url":"https://api.github.com/users/EdtechFoundry/events{/privacy}","received_events_url":"https://api.github.com/users/EdtechFoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EdtechFoundry/edtech-seed-project-api","description":"API for edtech seed project using StrongLoop","fork":false,"url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api","forks_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/forks","keys_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/teams","hooks_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/hooks","issue_events_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/events{/number}","events_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/events","assignees_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/assignees{/user}","branches_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/branches{/branch}","tags_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/tags","blobs_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/statuses/{sha}","languages_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/languages","stargazers_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/stargazers","contributors_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/contributors","subscribers_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/subscribers","subscription_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/subscription","commits_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/contents/{+path}","compare_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/merges","archive_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/downloads","issues_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues{/number}","pulls_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls{/number}","milestones_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/milestones{/number}","notifications_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/labels{/name}","releases_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/releases{/id}","created_at":"2015-03-31T20:33:24Z","updated_at":"2015-04-27T09:15:14Z","pushed_at":"2015-04-28T16:11:10Z","git_url":"git://github.com/EdtechFoundry/edtech-seed-project-api.git","ssh_url":"git@github.com:EdtechFoundry/edtech-seed-project-api.git","clone_url":"https://github.com/EdtechFoundry/edtech-seed-project-api.git","svn_url":"https://github.com/EdtechFoundry/edtech-seed-project-api","homepage":"","size":264,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"EdtechFoundry:master","ref":"master","sha":"884e0f4dba01f2394484947f31a5e1f8628aa659","user":{"login":"EdtechFoundry","id":10948595,"avatar_url":"https://avatars.githubusercontent.com/u/10948595?v=3","gravatar_id":"","url":"https://api.github.com/users/EdtechFoundry","html_url":"https://github.com/EdtechFoundry","followers_url":"https://api.github.com/users/EdtechFoundry/followers","following_url":"https://api.github.com/users/EdtechFoundry/following{/other_user}","gists_url":"https://api.github.com/users/EdtechFoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/EdtechFoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdtechFoundry/subscriptions","organizations_url":"https://api.github.com/users/EdtechFoundry/orgs","repos_url":"https://api.github.com/users/EdtechFoundry/repos","events_url":"https://api.github.com/users/EdtechFoundry/events{/privacy}","received_events_url":"https://api.github.com/users/EdtechFoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":33208390,"name":"edtech-seed-project-api","full_name":"EdtechFoundry/edtech-seed-project-api","owner":{"login":"EdtechFoundry","id":10948595,"avatar_url":"https://avatars.githubusercontent.com/u/10948595?v=3","gravatar_id":"","url":"https://api.github.com/users/EdtechFoundry","html_url":"https://github.com/EdtechFoundry","followers_url":"https://api.github.com/users/EdtechFoundry/followers","following_url":"https://api.github.com/users/EdtechFoundry/following{/other_user}","gists_url":"https://api.github.com/users/EdtechFoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/EdtechFoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdtechFoundry/subscriptions","organizations_url":"https://api.github.com/users/EdtechFoundry/orgs","repos_url":"https://api.github.com/users/EdtechFoundry/repos","events_url":"https://api.github.com/users/EdtechFoundry/events{/privacy}","received_events_url":"https://api.github.com/users/EdtechFoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EdtechFoundry/edtech-seed-project-api","description":"API for edtech seed project using StrongLoop","fork":false,"url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api","forks_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/forks","keys_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/teams","hooks_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/hooks","issue_events_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/events{/number}","events_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/events","assignees_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/assignees{/user}","branches_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/branches{/branch}","tags_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/tags","blobs_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/statuses/{sha}","languages_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/languages","stargazers_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/stargazers","contributors_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/contributors","subscribers_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/subscribers","subscription_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/subscription","commits_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/contents/{+path}","compare_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/merges","archive_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/downloads","issues_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues{/number}","pulls_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls{/number}","milestones_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/milestones{/number}","notifications_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/labels{/name}","releases_url":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/releases{/id}","created_at":"2015-03-31T20:33:24Z","updated_at":"2015-04-27T09:15:14Z","pushed_at":"2015-04-28T16:11:10Z","git_url":"git://github.com/EdtechFoundry/edtech-seed-project-api.git","ssh_url":"git@github.com:EdtechFoundry/edtech-seed-project-api.git","clone_url":"https://github.com/EdtechFoundry/edtech-seed-project-api.git","svn_url":"https://github.com/EdtechFoundry/edtech-seed-project-api","homepage":"","size":264,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":17,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34"},"html":{"href":"https://github.com/EdtechFoundry/edtech-seed-project-api/pull/34"},"issue":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/34"},"comments":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/EdtechFoundry/edtech-seed-project-api/statuses/07e95164894f71b2479476a9b5761a2ce8bfd1bd"}}}}