{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/9372","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/9372/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/9372/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/9372/events","html_url":"https://github.com/meteor/meteor/issues/9372","id":274083434,"number":9372,"title":"Meteor runs in production mode by default in Windows","user":{"login":"pilarArr","id":26302137,"avatar_url":"https://avatars0.githubusercontent.com/u/26302137?v=4","gravatar_id":"","url":"https://api.github.com/users/pilarArr","html_url":"https://github.com/pilarArr","followers_url":"https://api.github.com/users/pilarArr/followers","following_url":"https://api.github.com/users/pilarArr/following{/other_user}","gists_url":"https://api.github.com/users/pilarArr/gists{/gist_id}","starred_url":"https://api.github.com/users/pilarArr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilarArr/subscriptions","organizations_url":"https://api.github.com/users/pilarArr/orgs","repos_url":"https://api.github.com/users/pilarArr/repos","events_url":"https://api.github.com/users/pilarArr/events{/privacy}","received_events_url":"https://api.github.com/users/pilarArr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-15T09:12:32Z","updated_at":"2017-11-16T07:10:25Z","closed_at":null,"author_association":"NONE","body":"### This bug report should include:\r\n- [x] A descriptive title\r\n- [x] The version of Meteor showing the problem.\r\n- [x] The last version of Meteor where the problem did _not_ occur (if applicable)\r\n- [x] The operating system you're running Meteor on.\r\n- [x] The expected behavior.\r\n- [x] The actual behavior.\r\n- [x] A **simple** reproduction!\r\n      (example: A GitHub repository that anyone can clone to observe the problem.)\r\n\r\n## Meteor runs by default in production mode in Windows10\r\n\r\nAs stated in the title Meteor runs by default in production mode when using a windows machine.\r\nMy version of Windows is 10 (x64).\r\n\r\nI had this problem in Meteor 1.5, then did a complete uninstall of meteor to install the new Meteor 1.6 with Chocolatey and the problem persists. I can't know in which version of meteor it worked.\r\n\r\n This is a huge problem for me since any code I have in a `Meteor.isDeveloment` conditional does not run.\r\n\r\n### Simple reproduction in Windows 10.\r\n\r\n1. First create a simple meteor app\r\n```\r\nmeteor create simple-todos\r\ncd simple-todos\r\n```\r\n\r\n2. On the `main.js` file on server write.\r\n```\r\nconsole.log(Meteor.isProduction);\r\nconsole.log(Meteor.isDevelopment);\r\n```\r\n\r\n3. Run meteor.\r\n\r\n#### Expected behaviour\r\n```bash\r\nmeteor\r\n... meteor runs\r\nfalse\r\ntrue\r\n```\r\n\r\n#### Actual behaviour\r\n```bash\r\nmeteor\r\n... meteor runs\r\ntrue\r\nfalse\r\n```\r\n\r\nI did this test on a macOS machine and it works as expected\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/344835397","html_url":"https://github.com/meteor/meteor/issues/9372#issuecomment-344835397","issue_url":"https://api.github.com/repos/meteor/meteor/issues/9372","id":344835397,"user":{"login":"claudiutraistaru","id":2698087,"avatar_url":"https://avatars2.githubusercontent.com/u/2698087?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiutraistaru","html_url":"https://github.com/claudiutraistaru","followers_url":"https://api.github.com/users/claudiutraistaru/followers","following_url":"https://api.github.com/users/claudiutraistaru/following{/other_user}","gists_url":"https://api.github.com/users/claudiutraistaru/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiutraistaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiutraistaru/subscriptions","organizations_url":"https://api.github.com/users/claudiutraistaru/orgs","repos_url":"https://api.github.com/users/claudiutraistaru/repos","events_url":"https://api.github.com/users/claudiutraistaru/events{/privacy}","received_events_url":"https://api.github.com/users/claudiutraistaru/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T07:10:25Z","updated_at":"2017-11-16T07:10:25Z","author_association":"NONE","body":"Furthermore , \r\n```\r\nconsole.log(process.env.NODE_ENV)\r\n```\r\nhas the ouptut\r\n```\r\nproduction\r\n```\r\nThe temporar workaround for this is to start meteor like this:\r\n```\r\nset NODE_ENV=development && meteor\r\n```"}}
{"actor":{"display_login":"claudiutraistaru"}}