{"action":"created","issue":{"url":"https://api.github.com/repos/laserlemon/figaro/issues/178","labels_url":"https://api.github.com/repos/laserlemon/figaro/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/laserlemon/figaro/issues/178/comments","events_url":"https://api.github.com/repos/laserlemon/figaro/issues/178/events","html_url":"https://github.com/laserlemon/figaro/pull/178","id":55695923,"number":178,"title":"Custom file location","user":{"login":"zeeraw","id":751958,"avatar_url":"https://avatars.githubusercontent.com/u/751958?v=3","gravatar_id":"","url":"https://api.github.com/users/zeeraw","html_url":"https://github.com/zeeraw","followers_url":"https://api.github.com/users/zeeraw/followers","following_url":"https://api.github.com/users/zeeraw/following{/other_user}","gists_url":"https://api.github.com/users/zeeraw/gists{/gist_id}","starred_url":"https://api.github.com/users/zeeraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeeraw/subscriptions","organizations_url":"https://api.github.com/users/zeeraw/orgs","repos_url":"https://api.github.com/users/zeeraw/repos","events_url":"https://api.github.com/users/zeeraw/events{/privacy}","received_events_url":"https://api.github.com/users/zeeraw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-28T00:18:15Z","updated_at":"2015-06-05T10:49:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laserlemon/figaro/pulls/178","html_url":"https://github.com/laserlemon/figaro/pull/178","diff_url":"https://github.com/laserlemon/figaro/pull/178.diff","patch_url":"https://github.com/laserlemon/figaro/pull/178.patch"},"body":"Possibly solves or replaces #78\r\n\r\nSay your deployment process require you to have your configuration at a certain file path or that you want to provide defaults for different platforms in development.\r\nYou can achieve this by using an environment variable to tell Figaro where to look for your yaml file.\r\n\r\n```bash\r\n$ docker run -e FIGARO_PATH=./config/application.docker.yml my-container rails s\r\n```\r\n\r\n```bash\r\n$ FIGARO_PATH=/storage_device/configuration/my_app_variables.yml rails s\r\n```\r\n\r\nIf you're not using rails or if you want to determine the file path by other means, set the `Figaro.adapter.path` to your desired value.\r\n\r\n```ruby\r\nrequire \"figaro\"\r\nFigaro.adapter.path = \"/my/config/file.yml\"\r\nFigaro.load\r\n```\r\n\r\n---\r\n\r\nNow you can get your environment variables using environment variables\r\n\r\n![Infinity](http://mylittlefacewhen.com/media/f/img/mlfw1293_sweetie_belle_derelle_manecast.gif)\r\n![Yo dawg](http://s3.amazonaws.com/rapgenius/yo-dawg-xzibit-48.jpg)"},"comment":{"url":"https://api.github.com/repos/laserlemon/figaro/issues/comments/109257066","html_url":"https://github.com/laserlemon/figaro/pull/178#issuecomment-109257066","issue_url":"https://api.github.com/repos/laserlemon/figaro/issues/178","id":109257066,"user":{"login":"zeeraw","id":751958,"avatar_url":"https://avatars.githubusercontent.com/u/751958?v=3","gravatar_id":"","url":"https://api.github.com/users/zeeraw","html_url":"https://github.com/zeeraw","followers_url":"https://api.github.com/users/zeeraw/followers","following_url":"https://api.github.com/users/zeeraw/following{/other_user}","gists_url":"https://api.github.com/users/zeeraw/gists{/gist_id}","starred_url":"https://api.github.com/users/zeeraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeeraw/subscriptions","organizations_url":"https://api.github.com/users/zeeraw/orgs","repos_url":"https://api.github.com/users/zeeraw/repos","events_url":"https://api.github.com/users/zeeraw/events{/privacy}","received_events_url":"https://api.github.com/users/zeeraw/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T10:49:19Z","updated_at":"2015-06-05T10:49:19Z","body":"@laserlemon What are your thoughts?"}}