{"action":"created","issue":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/3090","repository_url":"https://api.github.com/repos/mperham/sidekiq","labels_url":"https://api.github.com/repos/mperham/sidekiq/issues/3090/labels{/name}","comments_url":"https://api.github.com/repos/mperham/sidekiq/issues/3090/comments","events_url":"https://api.github.com/repos/mperham/sidekiq/issues/3090/events","html_url":"https://github.com/mperham/sidekiq/issues/3090","id":169178532,"number":3090,"title":"Can I put environment config variables inside sidekiq.yml file?","user":{"login":"zulhfreelancer","id":3416976,"avatar_url":"https://avatars.githubusercontent.com/u/3416976?v=3","gravatar_id":"","url":"https://api.github.com/users/zulhfreelancer","html_url":"https://github.com/zulhfreelancer","followers_url":"https://api.github.com/users/zulhfreelancer/followers","following_url":"https://api.github.com/users/zulhfreelancer/following{/other_user}","gists_url":"https://api.github.com/users/zulhfreelancer/gists{/gist_id}","starred_url":"https://api.github.com/users/zulhfreelancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulhfreelancer/subscriptions","organizations_url":"https://api.github.com/users/zulhfreelancer/orgs","repos_url":"https://api.github.com/users/zulhfreelancer/repos","events_url":"https://api.github.com/users/zulhfreelancer/events{/privacy}","received_events_url":"https://api.github.com/users/zulhfreelancer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-03T16:45:22Z","updated_at":"2016-08-04T03:11:50Z","closed_at":"2016-08-03T17:38:52Z","body":"Hi,\r\n\r\nI'm new Sidekiq user and I want to ask about [Advanced Options](https://github.com/mperham/sidekiq/wiki/Advanced-Options) sidekiq.yml file. Can I set values in my environment config variables?\r\n\r\nFor example:\r\n\r\n```\r\n:pidfile: tmp/pids/sidekiq.pid\r\nstaging:\r\n  :concurrency: ENV['SIDEKIQ_CONCURRENCY']\r\nproduction:\r\n  :concurrency: ENV['SIDEKIQ_CONCURRENCY']\r\n:queues:\r\n  - default\r\n```\r\n\r\nSince I have different set of web dynos, workers and RedisCloud plan on staging and production, I think it will much more easier for me to just change the values from my Heroku config variables.\r\n\r\nRuby version: 2.3.1\r\nSidekiq / Pro / Enterprise version(s): 4.1.4\r\nRails version: 4.2.6\r\n"},"comment":{"url":"https://api.github.com/repos/mperham/sidekiq/issues/comments/237440911","html_url":"https://github.com/mperham/sidekiq/issues/3090#issuecomment-237440911","issue_url":"https://api.github.com/repos/mperham/sidekiq/issues/3090","id":237440911,"user":{"login":"zulhfreelancer","id":3416976,"avatar_url":"https://avatars.githubusercontent.com/u/3416976?v=3","gravatar_id":"","url":"https://api.github.com/users/zulhfreelancer","html_url":"https://github.com/zulhfreelancer","followers_url":"https://api.github.com/users/zulhfreelancer/followers","following_url":"https://api.github.com/users/zulhfreelancer/following{/other_user}","gists_url":"https://api.github.com/users/zulhfreelancer/gists{/gist_id}","starred_url":"https://api.github.com/users/zulhfreelancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulhfreelancer/subscriptions","organizations_url":"https://api.github.com/users/zulhfreelancer/orgs","repos_url":"https://api.github.com/users/zulhfreelancer/repos","events_url":"https://api.github.com/users/zulhfreelancer/events{/privacy}","received_events_url":"https://api.github.com/users/zulhfreelancer/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T03:11:50Z","updated_at":"2016-08-04T03:11:50Z","body":"Thanks @ryansch and @mperham!"}}
{"actor":{"display_login":"zulhfreelancer"}}