{"action":"created","comment":{"url":"https://api.github.com/repos/gabebw/croniker/pulls/comments/67724492","id":67724492,"diff_hunk":"@@ -16,8 +16,12 @@ import Database.Persist.Postgresql (PostgresConf)\n import Language.Haskell.TH.Syntax  (Exp, Name, Q)\n import Network.Wai.Handler.Warp    (HostPreference)\n import Yesod.Default.Config2       (applyEnvValue, configSettingsYml)\n-import Yesod.Default.Util          (WidgetFileSettings, widgetFileNoReload,\n-                                    widgetFileReload)\n+#if DEVELOPMENT\n+import Yesod.Default.Util (WidgetFileSettings, widgetFileReload)\n+#else\n+import Yesod.Default.Util (WidgetFileSettings, widgetFileNoReload)","path":"src/Settings.hs","position":9,"original_position":9,"commit_id":"9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00","original_commit_id":"9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00","user":{"login":"tonyd256","id":1169797,"avatar_url":"https://avatars.githubusercontent.com/u/1169797?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyd256","html_url":"https://github.com/tonyd256","followers_url":"https://api.github.com/users/tonyd256/followers","following_url":"https://api.github.com/users/tonyd256/following{/other_user}","gists_url":"https://api.github.com/users/tonyd256/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyd256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyd256/subscriptions","organizations_url":"https://api.github.com/users/tonyd256/orgs","repos_url":"https://api.github.com/users/tonyd256/repos","events_url":"https://api.github.com/users/tonyd256/events{/privacy}","received_events_url":"https://api.github.com/users/tonyd256/received_events","type":"User","site_admin":false},"body":"why `NoReload` for prod?","created_at":"2016-06-20T16:51:52Z","updated_at":"2016-06-20T16:51:52Z","html_url":"https://github.com/gabebw/croniker/pull/70#discussion_r67724492","pull_request_url":"https://api.github.com/repos/gabebw/croniker/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/comments/67724492"},"html":{"href":"https://github.com/gabebw/croniker/pull/70#discussion_r67724492"},"pull_request":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/gabebw/croniker/pulls/70","id":74346836,"html_url":"https://github.com/gabebw/croniker/pull/70","diff_url":"https://github.com/gabebw/croniker/pull/70.diff","patch_url":"https://github.com/gabebw/croniker/pull/70.patch","issue_url":"https://api.github.com/repos/gabebw/croniker/issues/70","number":70,"state":"closed","locked":false,"title":"Move much more configuration into the environment","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"body":"There were a lot of optional configuration values, with confusing defaults (e.g. in development mode, it did not use the DATABASE_URL while in all other environments it did). Now more of the configuration is explicit and there's more development/production/test parity.\r\n\r\nA lot of this is taken from https://pbrisbin.com/posts/tee-io_lessons_learned/.\r\n\r\nChanges:\r\n\r\n* Always read the database information from `$DATABASE_URL`. To that end, create local databases with known roles and names.\r\n* Set the default log level to \"info\"\r\n* Remove \"shouldLogAll\" setting in favor of always setting the log level. To log everything, set the log level to \"debug\".\r\n* Use Pat's load-env package instead of dotenv, since load-env checks for file existence for me\r\n* Use `#if DEVELOPMENT` based on https://github.com/pbrisbin/tee-io/commit/7ac70ffbe6a76bb21523cc72c7619b246999ee41\r\n* Remove unused analytics-related code\r\n* Always set `appStaticDir` to \"static\" instead of pulling it from the env\r\n* Always guess the approot from headers\r\n* Use `.env.test` instead of `test-settings.yml`","created_at":"2016-06-18T20:41:32Z","updated_at":"2016-06-20T16:51:52Z","closed_at":"2016-06-18T20:45:48Z","merged_at":"2016-06-18T20:45:48Z","merge_commit_sha":"9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabebw/croniker/pulls/70/commits","review_comments_url":"https://api.github.com/repos/gabebw/croniker/pulls/70/comments","review_comment_url":"https://api.github.com/repos/gabebw/croniker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabebw/croniker/issues/70/comments","statuses_url":"https://api.github.com/repos/gabebw/croniker/statuses/9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00","head":{"label":"gabebw:gbw-log-more","ref":"gbw-log-more","sha":"9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":48019443,"name":"croniker","full_name":"gabebw/croniker","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/croniker","description":":clock1: Schedule changes to your Twitter moniker and profile in advance (like Buffer)","fork":false,"url":"https://api.github.com/repos/gabebw/croniker","forks_url":"https://api.github.com/repos/gabebw/croniker/forks","keys_url":"https://api.github.com/repos/gabebw/croniker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/croniker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/croniker/teams","hooks_url":"https://api.github.com/repos/gabebw/croniker/hooks","issue_events_url":"https://api.github.com/repos/gabebw/croniker/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/croniker/events","assignees_url":"https://api.github.com/repos/gabebw/croniker/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/croniker/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/croniker/tags","blobs_url":"https://api.github.com/repos/gabebw/croniker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/croniker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/croniker/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/croniker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/croniker/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/croniker/languages","stargazers_url":"https://api.github.com/repos/gabebw/croniker/stargazers","contributors_url":"https://api.github.com/repos/gabebw/croniker/contributors","subscribers_url":"https://api.github.com/repos/gabebw/croniker/subscribers","subscription_url":"https://api.github.com/repos/gabebw/croniker/subscription","commits_url":"https://api.github.com/repos/gabebw/croniker/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/croniker/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/croniker/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/croniker/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/croniker/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/croniker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/croniker/merges","archive_url":"https://api.github.com/repos/gabebw/croniker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/croniker/downloads","issues_url":"https://api.github.com/repos/gabebw/croniker/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/croniker/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/croniker/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/croniker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/croniker/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/croniker/releases{/id}","deployments_url":"https://api.github.com/repos/gabebw/croniker/deployments","created_at":"2015-12-15T04:23:25Z","updated_at":"2016-06-17T20:53:59Z","pushed_at":"2016-06-20T04:06:44Z","git_url":"git://github.com/gabebw/croniker.git","ssh_url":"git@github.com:gabebw/croniker.git","clone_url":"https://github.com/gabebw/croniker.git","svn_url":"https://github.com/gabebw/croniker","homepage":"http://croniker.io","size":354,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"gabebw:master","ref":"master","sha":"bb22d6a335f471f1aa38f37d60e051927b5373cd","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":48019443,"name":"croniker","full_name":"gabebw/croniker","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/croniker","description":":clock1: Schedule changes to your Twitter moniker and profile in advance (like Buffer)","fork":false,"url":"https://api.github.com/repos/gabebw/croniker","forks_url":"https://api.github.com/repos/gabebw/croniker/forks","keys_url":"https://api.github.com/repos/gabebw/croniker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/croniker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/croniker/teams","hooks_url":"https://api.github.com/repos/gabebw/croniker/hooks","issue_events_url":"https://api.github.com/repos/gabebw/croniker/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/croniker/events","assignees_url":"https://api.github.com/repos/gabebw/croniker/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/croniker/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/croniker/tags","blobs_url":"https://api.github.com/repos/gabebw/croniker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/croniker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/croniker/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/croniker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/croniker/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/croniker/languages","stargazers_url":"https://api.github.com/repos/gabebw/croniker/stargazers","contributors_url":"https://api.github.com/repos/gabebw/croniker/contributors","subscribers_url":"https://api.github.com/repos/gabebw/croniker/subscribers","subscription_url":"https://api.github.com/repos/gabebw/croniker/subscription","commits_url":"https://api.github.com/repos/gabebw/croniker/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/croniker/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/croniker/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/croniker/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/croniker/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/croniker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/croniker/merges","archive_url":"https://api.github.com/repos/gabebw/croniker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/croniker/downloads","issues_url":"https://api.github.com/repos/gabebw/croniker/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/croniker/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/croniker/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/croniker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/croniker/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/croniker/releases{/id}","deployments_url":"https://api.github.com/repos/gabebw/croniker/deployments","created_at":"2015-12-15T04:23:25Z","updated_at":"2016-06-17T20:53:59Z","pushed_at":"2016-06-20T04:06:44Z","git_url":"git://github.com/gabebw/croniker.git","ssh_url":"git@github.com:gabebw/croniker.git","clone_url":"https://github.com/gabebw/croniker.git","svn_url":"https://github.com/gabebw/croniker","homepage":"http://croniker.io","size":354,"stargazers_count":3,"watchers_count":3,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/70"},"html":{"href":"https://github.com/gabebw/croniker/pull/70"},"issue":{"href":"https://api.github.com/repos/gabebw/croniker/issues/70"},"comments":{"href":"https://api.github.com/repos/gabebw/croniker/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabebw/croniker/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/gabebw/croniker/statuses/9b20ba29e7cce04bf194fc238d4b50ea6dd7ee00"}}}}
{"actor":{"display_login":"tonyd256"}}