{"action":"closed","issue":{"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/126","labels_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/126/comments","events_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/126/events","html_url":"https://github.com/YashdalfTheGray/flintandsteel/issues/126","id":115140474,"number":126,"title":"Nodemon is watching the DB!!!","user":{"login":"Mctalian","id":5081281,"avatar_url":"https://avatars.githubusercontent.com/u/5081281?v=3","gravatar_id":"","url":"https://api.github.com/users/Mctalian","html_url":"https://github.com/Mctalian","followers_url":"https://api.github.com/users/Mctalian/followers","following_url":"https://api.github.com/users/Mctalian/following{/other_user}","gists_url":"https://api.github.com/users/Mctalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Mctalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mctalian/subscriptions","organizations_url":"https://api.github.com/users/Mctalian/orgs","repos_url":"https://api.github.com/users/Mctalian/repos","events_url":"https://api.github.com/users/Mctalian/events{/privacy}","received_events_url":"https://api.github.com/users/Mctalian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"Mctalian","id":5081281,"avatar_url":"https://avatars.githubusercontent.com/u/5081281?v=3","gravatar_id":"","url":"https://api.github.com/users/Mctalian","html_url":"https://github.com/Mctalian","followers_url":"https://api.github.com/users/Mctalian/followers","following_url":"https://api.github.com/users/Mctalian/following{/other_user}","gists_url":"https://api.github.com/users/Mctalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Mctalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mctalian/subscriptions","organizations_url":"https://api.github.com/users/Mctalian/orgs","repos_url":"https://api.github.com/users/Mctalian/repos","events_url":"https://api.github.com/users/Mctalian/events{/privacy}","received_events_url":"https://api.github.com/users/Mctalian/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-04T20:30:36Z","updated_at":"2015-11-09T20:25:14Z","closed_at":"2015-11-09T20:25:14Z","body":"Anytime a write occurs to the DB, the server restarts. No bueno. It's a simple fix, and I did so on the production server as a stop gap, but we'll need to throw an official PR up.\r\n\r\nIn case anyone wants to take care of it, you change `'spec/*'` in the `'ignore'` field to `'server\\datastore\\*'` for both Prod and Dev starts. It should look like the following.\r\n\r\n```\r\ngulp.task('start:dev', ['_cleanUp', 'test:client', 'inject'], function() {\r\n    \"use strict\";\r\n\r\n    nodemon({\r\n        script: 'server/server.js',\r\n        env: { 'NODE_ENV': 'development' },\r\n        'ignore': ['server/datastore/*']\r\n    });\r\n});\r\n\r\ngulp.task('start:prod', ['_cleanUp', 'test:client', 'inject'], function() {\r\n    \"use strict\";\r\n\r\n    nodemon({\r\n        script: 'server/server.js',\r\n        env: { 'NODE_ENV': 'production' },\r\n        'ignore': ['server/datastore/*']\r\n    });\r\n});\r\n```"}}