{"action":"created","issue":{"url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/1","repository_url":"https://api.github.com/repos/Taiters/sails-hook-dotenv","labels_url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/1/comments","events_url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/1/events","html_url":"https://github.com/Taiters/sails-hook-dotenv/issues/1","id":140957269,"number":1,"title":"does not get loaded","user":{"login":"koraysels","id":2418853,"avatar_url":"https://avatars.githubusercontent.com/u/2418853?v=3","gravatar_id":"","url":"https://api.github.com/users/koraysels","html_url":"https://github.com/koraysels","followers_url":"https://api.github.com/users/koraysels/followers","following_url":"https://api.github.com/users/koraysels/following{/other_user}","gists_url":"https://api.github.com/users/koraysels/gists{/gist_id}","starred_url":"https://api.github.com/users/koraysels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koraysels/subscriptions","organizations_url":"https://api.github.com/users/koraysels/orgs","repos_url":"https://api.github.com/users/koraysels/repos","events_url":"https://api.github.com/users/koraysels/events{/privacy}","received_events_url":"https://api.github.com/users/koraysels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-15T12:21:02Z","updated_at":"2016-12-18T17:51:03Z","closed_at":null,"body":"hi I installed sails-hoos-dotenv and added config in /config but it does not load my .env file..\n\n```module.exports.dotenv = {\n  active: true\n};\n\n```\n\nI use it for my db credentials etc.. is it possible the hook gets fired too late ? It should be loaded as early as possible right ? \n```\n"},"comment":{"url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/comments/267835522","html_url":"https://github.com/Taiters/sails-hook-dotenv/issues/1#issuecomment-267835522","issue_url":"https://api.github.com/repos/Taiters/sails-hook-dotenv/issues/1","id":267835522,"user":{"login":"jpdavy","id":1144232,"avatar_url":"https://avatars.githubusercontent.com/u/1144232?v=3","gravatar_id":"","url":"https://api.github.com/users/jpdavy","html_url":"https://github.com/jpdavy","followers_url":"https://api.github.com/users/jpdavy/followers","following_url":"https://api.github.com/users/jpdavy/following{/other_user}","gists_url":"https://api.github.com/users/jpdavy/gists{/gist_id}","starred_url":"https://api.github.com/users/jpdavy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpdavy/subscriptions","organizations_url":"https://api.github.com/users/jpdavy/orgs","repos_url":"https://api.github.com/users/jpdavy/repos","events_url":"https://api.github.com/users/jpdavy/events{/privacy}","received_events_url":"https://api.github.com/users/jpdavy/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T17:51:03Z","updated_at":"2016-12-18T17:51:03Z","body":"I am having this same issue. \r\n\r\nFrom package.json:\r\n```\r\n\"dependencies\": {\r\n  ...\r\n  \"sails-hook-dotenv\": \"^0.1.1\",\r\n}\r\n```\r\n\r\nFrom config/dotenv.js:\r\n`module.exports.active = true;`\r\n\r\nFrom ./.env:\r\n`MONGODB_URI=mongodb://heroku_XXXX:YYYY@ds051334.mlab.com:51334/heroku_ZZZZ`\r\n\r\nFrom config/connections.js:\r\n`console.log(\"Database: %s\", process.env.MONGODB_URI);`\r\n\r\nPrints:\r\n`sails lift\r\n\r\ninfo: Starting app...\r\n\r\nDatabase: undefined\r\n`"}}
{"actor":{"display_login":"jpdavy"}}