{"action":"created","issue":{"url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/45","labels_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/45/comments","events_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/45/events","html_url":"https://github.com/skylightio/skylight-ruby/issues/45","id":100826741,"number":45,"title":"ERB variables are not interpolated in config/skylight.yml","user":{"login":"thejchap","id":2475286,"avatar_url":"https://avatars.githubusercontent.com/u/2475286?v=3","gravatar_id":"","url":"https://api.github.com/users/thejchap","html_url":"https://github.com/thejchap","followers_url":"https://api.github.com/users/thejchap/followers","following_url":"https://api.github.com/users/thejchap/following{/other_user}","gists_url":"https://api.github.com/users/thejchap/gists{/gist_id}","starred_url":"https://api.github.com/users/thejchap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejchap/subscriptions","organizations_url":"https://api.github.com/users/thejchap/orgs","repos_url":"https://api.github.com/users/thejchap/repos","events_url":"https://api.github.com/users/thejchap/events{/privacy}","received_events_url":"https://api.github.com/users/thejchap/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-13T17:39:33Z","updated_at":"2015-08-13T17:43:54Z","closed_at":"2015-08-13T17:43:08Z","body":"Still investigating, but here are my findings so far. Please let me know if I'm missing something:\r\n\r\nThe reason we have gone this route is that we currently have two Skylight-enabled apps on the same box in the same env, hence we need to have separate auth tokens and can't just set `SKYLIGHT_AUTHENTICATION`\r\n\r\n```\r\n$ cat config/skylight.yml\r\n---\r\n# The authentication token for the application.\r\nauthentication: <%= ENV['SOME_OTHER_ENV_VARIABLE_WITH_TOKEN'] %>\r\n```\r\n\r\n```rb\r\n# lib/skylight/railtie.rb\r\n\r\nrequire 'skylight'\r\nrequire 'rails'\r\n\r\nmodule Skylight\r\n  class Railtie < Rails::Railtie\r\n    # ...\r\n\r\n    config = load_skylight_config(app)\r\n    Rails.logger.info config.inspect #=> #<Skylight::Config:0x007f98c0f88a30 @values={:authentication=>\"<%= ENV['SOME_OTHER_ENV_VARIABLE_WITH_TOKEN'] %>\", ...>\r\n\r\n    # ...\r\n  end\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/comments/130776323","html_url":"https://github.com/skylightio/skylight-ruby/issues/45#issuecomment-130776323","issue_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/45","id":130776323,"user":{"login":"wagenet","id":9835,"avatar_url":"https://avatars.githubusercontent.com/u/9835?v=3","gravatar_id":"","url":"https://api.github.com/users/wagenet","html_url":"https://github.com/wagenet","followers_url":"https://api.github.com/users/wagenet/followers","following_url":"https://api.github.com/users/wagenet/following{/other_user}","gists_url":"https://api.github.com/users/wagenet/gists{/gist_id}","starred_url":"https://api.github.com/users/wagenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagenet/subscriptions","organizations_url":"https://api.github.com/users/wagenet/orgs","repos_url":"https://api.github.com/users/wagenet/repos","events_url":"https://api.github.com/users/wagenet/events{/privacy}","received_events_url":"https://api.github.com/users/wagenet/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T17:43:54Z","updated_at":"2015-08-13T17:43:54Z","body":"@thejchap no problem. It will be a part of 0.8.0 which should go out this week."}}