{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2180","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2180/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2180/events","html_url":"https://github.com/Unitech/pm2/issues/2180","id":155853663,"number":2180,"title":"Not restarting when directory specified in 'watch' changes","user":{"login":"geuis","id":53883,"avatar_url":"https://avatars.githubusercontent.com/u/53883?v=3","gravatar_id":"","url":"https://api.github.com/users/geuis","html_url":"https://github.com/geuis","followers_url":"https://api.github.com/users/geuis/followers","following_url":"https://api.github.com/users/geuis/following{/other_user}","gists_url":"https://api.github.com/users/geuis/gists{/gist_id}","starred_url":"https://api.github.com/users/geuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geuis/subscriptions","organizations_url":"https://api.github.com/users/geuis/orgs","repos_url":"https://api.github.com/users/geuis/repos","events_url":"https://api.github.com/users/geuis/events{/privacy}","received_events_url":"https://api.github.com/users/geuis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unitech/pm2/labels/need%20more%20data","name":"need more data","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-19T22:56:31Z","updated_at":"2016-05-25T10:46:26Z","closed_at":"2016-05-23T21:07:26Z","body":"I need pm2 to restart when any files in a series of specified directories changes. In this particular case, those directories are \"node_modules\" in a series of projects in child directories that all have their own node_modules. Currently, I'm making changes in a test directory manually but pm2 isn't responding.\r\n\r\nI'm using the following pm2 config:\r\n\r\n```\r\n{\r\n  \"apps\": [{\r\n    \"name\": \"module-link\",\r\n    \"script\": \"module-link\",\r\n    \"watch\": [\"sub-proj1/node_modules\"],\r\n    \"cwd\": \"/usr/local/apps/pm2-test-restart\",\r\n    \"merge_logs\": true\r\n  }]\r\n}\r\n```\r\nI've tried variations of the 'watch' property like './sub-proj1' and '../sub-proj1', etc."},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/221537870","html_url":"https://github.com/Unitech/pm2/issues/2180#issuecomment-221537870","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/2180","id":221537870,"user":{"login":"benishak","id":5909357,"avatar_url":"https://avatars.githubusercontent.com/u/5909357?v=3","gravatar_id":"","url":"https://api.github.com/users/benishak","html_url":"https://github.com/benishak","followers_url":"https://api.github.com/users/benishak/followers","following_url":"https://api.github.com/users/benishak/following{/other_user}","gists_url":"https://api.github.com/users/benishak/gists{/gist_id}","starred_url":"https://api.github.com/users/benishak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benishak/subscriptions","organizations_url":"https://api.github.com/users/benishak/orgs","repos_url":"https://api.github.com/users/benishak/repos","events_url":"https://api.github.com/users/benishak/events{/privacy}","received_events_url":"https://api.github.com/users/benishak/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T10:46:26Z","updated_at":"2016-05-25T10:46:26Z","body":"info logs in this way\r\n`logger.info()` or `logger.verbose()` lead pm2 to restart the process ... \r\nCheck this issue #2152\r\nhttps://github.com/Unitech/pm2/issues/2152"}}
{"actor":{"display_login":"benishak"}}