{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/61","repository_url":"https://api.github.com/repos/GoogleChromeLabs/ndb","labels_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/61/comments","events_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/61/events","html_url":"https://github.com/GoogleChromeLabs/ndb/issues/61","id":344931117,"node_id":"MDU6SXNzdWUzNDQ5MzExMTc=","number":61,"title":"Reload on file change?","user":{"login":"joacim-boive","id":270235,"node_id":"MDQ6VXNlcjI3MDIzNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/270235?v=4","gravatar_id":"","url":"https://api.github.com/users/joacim-boive","html_url":"https://github.com/joacim-boive","followers_url":"https://api.github.com/users/joacim-boive/followers","following_url":"https://api.github.com/users/joacim-boive/following{/other_user}","gists_url":"https://api.github.com/users/joacim-boive/gists{/gist_id}","starred_url":"https://api.github.com/users/joacim-boive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joacim-boive/subscriptions","organizations_url":"https://api.github.com/users/joacim-boive/orgs","repos_url":"https://api.github.com/users/joacim-boive/repos","events_url":"https://api.github.com/users/joacim-boive/events{/privacy}","received_events_url":"https://api.github.com/users/joacim-boive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T17:13:52Z","updated_at":"2018-07-31T21:45:37Z","closed_at":null,"author_association":"NONE","body":"I like to use nodemon as it watches and restarts the script on change.\r\n\r\nI could do nodemon --exec \"ndb server.js\" and that works.\r\nBut the problem is that if I change a file in the ndb debugger - nodemon detects the changed file and restarts the whole app.\r\n\r\nI would very much prefer that ndb simply restarts the evaluation of the current file, as it currently does.\r\n\r\nA nice feature would be if ndb implemented file watching without reloading the entire app when a file within the app is modified.\r\n\r\n\r\nOther than that small grudge it's really slick! :)"},"comment":{"url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/comments/409378271","html_url":"https://github.com/GoogleChromeLabs/ndb/issues/61#issuecomment-409378271","issue_url":"https://api.github.com/repos/GoogleChromeLabs/ndb/issues/61","id":409378271,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTM3ODI3MQ==","user":{"login":"ak239","id":426418,"node_id":"MDQ6VXNlcjQyNjQxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/426418?v=4","gravatar_id":"","url":"https://api.github.com/users/ak239","html_url":"https://github.com/ak239","followers_url":"https://api.github.com/users/ak239/followers","following_url":"https://api.github.com/users/ak239/following{/other_user}","gists_url":"https://api.github.com/users/ak239/gists{/gist_id}","starred_url":"https://api.github.com/users/ak239/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ak239/subscriptions","organizations_url":"https://api.github.com/users/ak239/orgs","repos_url":"https://api.github.com/users/ak239/repos","events_url":"https://api.github.com/users/ak239/events{/privacy}","received_events_url":"https://api.github.com/users/ak239/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T21:45:37Z","updated_at":"2018-07-31T21:45:37Z","author_association":"COLLABORATOR","body":"I believe that you can change order of arguments and it should just work, please try following:\r\n```bash\r\nndb nodemon --exec \"node server.js\"\r\n```\r\nWill it work for you? I will put it into readme if it works.\r\n\r\nAs alternative you can run your server using ndb:\r\n```bash\r\nndb server.js\r\n```\r\nAnd then reload your server when you need it by pressing Ctrl+R or Cmd+R."}}
{"actor":{"display_login":"ak239"}}