{"action":"created","comment":{"url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/comments/50224019","id":50224019,"diff_hunk":"@@ -0,0 +1 @@\n+:concurrency: 7","path":"config/sidekiq.yml","position":1,"original_position":1,"commit_id":"c668f53ade39ff00a9dd39a6fea5504175e727d3","original_commit_id":"c668f53ade39ff00a9dd39a6fea5504175e727d3","user":{"login":"jeffgerlach","id":13844570,"avatar_url":"https://avatars.githubusercontent.com/u/13844570?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffgerlach","html_url":"https://github.com/jeffgerlach","followers_url":"https://api.github.com/users/jeffgerlach/followers","following_url":"https://api.github.com/users/jeffgerlach/following{/other_user}","gists_url":"https://api.github.com/users/jeffgerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffgerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffgerlach/subscriptions","organizations_url":"https://api.github.com/users/jeffgerlach/orgs","repos_url":"https://api.github.com/users/jeffgerlach/repos","events_url":"https://api.github.com/users/jeffgerlach/events{/privacy}","received_events_url":"https://api.github.com/users/jeffgerlach/received_events","type":"User","site_admin":false},"body":"maybe not needed? ","created_at":"2016-01-20T08:02:20Z","updated_at":"2016-01-20T08:02:20Z","html_url":"https://github.com/FirehoseCommunity/DEFCON/pull/93#discussion_r50224019","pull_request_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/comments/50224019"},"html":{"href":"https://github.com/FirehoseCommunity/DEFCON/pull/93#discussion_r50224019"},"pull_request":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93","id":56574300,"html_url":"https://github.com/FirehoseCommunity/DEFCON/pull/93","diff_url":"https://github.com/FirehoseCommunity/DEFCON/pull/93.diff","patch_url":"https://github.com/FirehoseCommunity/DEFCON/pull/93.patch","issue_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/93","number":93,"state":"open","locked":false,"title":"Asynchronous mail processing","user":{"login":"jeffgerlach","id":13844570,"avatar_url":"https://avatars.githubusercontent.com/u/13844570?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffgerlach","html_url":"https://github.com/jeffgerlach","followers_url":"https://api.github.com/users/jeffgerlach/followers","following_url":"https://api.github.com/users/jeffgerlach/following{/other_user}","gists_url":"https://api.github.com/users/jeffgerlach/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffgerlach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffgerlach/subscriptions","organizations_url":"https://api.github.com/users/jeffgerlach/orgs","repos_url":"https://api.github.com/users/jeffgerlach/repos","events_url":"https://api.github.com/users/jeffgerlach/events{/privacy}","received_events_url":"https://api.github.com/users/jeffgerlach/received_events","type":"User","site_admin":false},"body":"Alright. So. I believe I have the asynchronous email working fine in the development environment (also added/modified a few tests to do some checks on post creation). But it looks like when it comes to production, there are a few approaches to getting Redis and sidekiq working. \r\n\r\nFirst things first, it looks like you'll need to choose a Redis add-on in Heroku, and set it in the heroku CLI `heroku addons:create youroptionhere`, it seems like most people use the free Redis To Go add on, but there's also a more powerful (for being free) Heroku-native Redis option if we want to try that, but couldn't find much documentation on integrating it. \r\n\r\nNext you need to set `heroku config:set REDIS_PROVIDER=YOUROPTION_URL`. \r\n\r\nI set up the config files according to http://manuel.manuelles.nl/blog/2012/11/13/sidekiq-on-heroku-with-redistogo-nano/  and the calculator provided there (http://manuel.manuelles.nl/sidekiq-heroku-redis-calc/), and http://stackoverflow.com/questions/30233977/how-can-i-get-activejob-to-enqueue-jobs-in-sidekiq-on-heroku-when-called-from-th/30242840#30242840 was helpful as well.  \r\n\r\n*Another* option is to use Unicorn to spawn the sidekiq workers in the web dyno, which would require some modifications and additions to this pull request, a good writeup I found was: https://coderwall.com/p/fprnhg/free-background-jobs-on-heroku  \r\n\r\nFinally, yet another option is to use https://github.com/brandonhilkert/sucker_punch instead of sidekiq. \r\n\r\nSince I don't have access to the production environment, I just kind of eyeballed the config settings for a non-unicorn sidekiq deployment on Heroku, but I'm sure something will go wrong/need to be tweaked (or it may require a paid instance without using Unicorn). Let me know what you think!\r\n\r\n*As a side-note: you must install Redis on your local development environment to get all the tests to pass. I personally used `brew install redis` on Mac OS X (El Capitan), which you then need to run as a background process (much like `rails server`). You also need to have Sidekiq running as another background process at the same time (`bundle exec sidekiq` after `bundle install`). Kind of a lot of work to run a few tests...","created_at":"2016-01-20T07:48:56Z","updated_at":"2016-01-20T08:02:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7458586304204f8f36562dd1eb21ee2373654996","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93/commits","review_comments_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93/comments","review_comment_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/93/comments","statuses_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/statuses/c668f53ade39ff00a9dd39a6fea5504175e727d3","head":{"label":"FirehoseCommunity:jg/asynch_mail","ref":"jg/asynch_mail","sha":"c668f53ade39ff00a9dd39a6fea5504175e727d3","user":{"login":"FirehoseCommunity","id":13384173,"avatar_url":"https://avatars.githubusercontent.com/u/13384173?v=3","gravatar_id":"","url":"https://api.github.com/users/FirehoseCommunity","html_url":"https://github.com/FirehoseCommunity","followers_url":"https://api.github.com/users/FirehoseCommunity/followers","following_url":"https://api.github.com/users/FirehoseCommunity/following{/other_user}","gists_url":"https://api.github.com/users/FirehoseCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/FirehoseCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirehoseCommunity/subscriptions","organizations_url":"https://api.github.com/users/FirehoseCommunity/orgs","repos_url":"https://api.github.com/users/FirehoseCommunity/repos","events_url":"https://api.github.com/users/FirehoseCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/FirehoseCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":46517858,"name":"DEFCON","full_name":"FirehoseCommunity/DEFCON","owner":{"login":"FirehoseCommunity","id":13384173,"avatar_url":"https://avatars.githubusercontent.com/u/13384173?v=3","gravatar_id":"","url":"https://api.github.com/users/FirehoseCommunity","html_url":"https://github.com/FirehoseCommunity","followers_url":"https://api.github.com/users/FirehoseCommunity/followers","following_url":"https://api.github.com/users/FirehoseCommunity/following{/other_user}","gists_url":"https://api.github.com/users/FirehoseCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/FirehoseCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirehoseCommunity/subscriptions","organizations_url":"https://api.github.com/users/FirehoseCommunity/orgs","repos_url":"https://api.github.com/users/FirehoseCommunity/repos","events_url":"https://api.github.com/users/FirehoseCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/FirehoseCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FirehoseCommunity/DEFCON","description":"","fork":false,"url":"https://api.github.com/repos/FirehoseCommunity/DEFCON","forks_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/forks","keys_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/teams","hooks_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/hooks","issue_events_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/events{/number}","events_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/events","assignees_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/assignees{/user}","branches_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/branches{/branch}","tags_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/tags","blobs_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/refs{/sha}","trees_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/statuses/{sha}","languages_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/languages","stargazers_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/stargazers","contributors_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/contributors","subscribers_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/subscribers","subscription_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/subscription","commits_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/commits{/sha}","git_commits_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/commits{/sha}","comments_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/comments{/number}","issue_comment_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/comments{/number}","contents_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/contents/{+path}","compare_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/merges","archive_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/downloads","issues_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues{/number}","pulls_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls{/number}","milestones_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/milestones{/number}","notifications_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/labels{/name}","releases_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/releases{/id}","created_at":"2015-11-19T20:18:27Z","updated_at":"2016-01-15T00:13:11Z","pushed_at":"2016-01-20T08:00:15Z","git_url":"git://github.com/FirehoseCommunity/DEFCON.git","ssh_url":"git@github.com:FirehoseCommunity/DEFCON.git","clone_url":"https://github.com/FirehoseCommunity/DEFCON.git","svn_url":"https://github.com/FirehoseCommunity/DEFCON","homepage":null,"size":17007,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":3,"default_branch":"master"}},"base":{"label":"FirehoseCommunity:master","ref":"master","sha":"5e47f14dc5ad38ace13fa3686065c6f16e5ad2a4","user":{"login":"FirehoseCommunity","id":13384173,"avatar_url":"https://avatars.githubusercontent.com/u/13384173?v=3","gravatar_id":"","url":"https://api.github.com/users/FirehoseCommunity","html_url":"https://github.com/FirehoseCommunity","followers_url":"https://api.github.com/users/FirehoseCommunity/followers","following_url":"https://api.github.com/users/FirehoseCommunity/following{/other_user}","gists_url":"https://api.github.com/users/FirehoseCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/FirehoseCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirehoseCommunity/subscriptions","organizations_url":"https://api.github.com/users/FirehoseCommunity/orgs","repos_url":"https://api.github.com/users/FirehoseCommunity/repos","events_url":"https://api.github.com/users/FirehoseCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/FirehoseCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":46517858,"name":"DEFCON","full_name":"FirehoseCommunity/DEFCON","owner":{"login":"FirehoseCommunity","id":13384173,"avatar_url":"https://avatars.githubusercontent.com/u/13384173?v=3","gravatar_id":"","url":"https://api.github.com/users/FirehoseCommunity","html_url":"https://github.com/FirehoseCommunity","followers_url":"https://api.github.com/users/FirehoseCommunity/followers","following_url":"https://api.github.com/users/FirehoseCommunity/following{/other_user}","gists_url":"https://api.github.com/users/FirehoseCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/FirehoseCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FirehoseCommunity/subscriptions","organizations_url":"https://api.github.com/users/FirehoseCommunity/orgs","repos_url":"https://api.github.com/users/FirehoseCommunity/repos","events_url":"https://api.github.com/users/FirehoseCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/FirehoseCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FirehoseCommunity/DEFCON","description":"","fork":false,"url":"https://api.github.com/repos/FirehoseCommunity/DEFCON","forks_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/forks","keys_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/teams","hooks_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/hooks","issue_events_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/events{/number}","events_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/events","assignees_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/assignees{/user}","branches_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/branches{/branch}","tags_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/tags","blobs_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/refs{/sha}","trees_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/statuses/{sha}","languages_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/languages","stargazers_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/stargazers","contributors_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/contributors","subscribers_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/subscribers","subscription_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/subscription","commits_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/commits{/sha}","git_commits_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/git/commits{/sha}","comments_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/comments{/number}","issue_comment_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/comments{/number}","contents_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/contents/{+path}","compare_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/merges","archive_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/downloads","issues_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues{/number}","pulls_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls{/number}","milestones_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/milestones{/number}","notifications_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/labels{/name}","releases_url":"https://api.github.com/repos/FirehoseCommunity/DEFCON/releases{/id}","created_at":"2015-11-19T20:18:27Z","updated_at":"2016-01-15T00:13:11Z","pushed_at":"2016-01-20T08:00:15Z","git_url":"git://github.com/FirehoseCommunity/DEFCON.git","ssh_url":"git@github.com:FirehoseCommunity/DEFCON.git","clone_url":"https://github.com/FirehoseCommunity/DEFCON.git","svn_url":"https://github.com/FirehoseCommunity/DEFCON","homepage":null,"size":17007,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93"},"html":{"href":"https://github.com/FirehoseCommunity/DEFCON/pull/93"},"issue":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/93"},"comments":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/FirehoseCommunity/DEFCON/statuses/c668f53ade39ff00a9dd39a6fea5504175e727d3"}}}}