{"action":"created","issue":{"url":"https://api.github.com/repos/AlexanderElias/revive/issues/1","repository_url":"https://api.github.com/repos/AlexanderElias/revive","labels_url":"https://api.github.com/repos/AlexanderElias/revive/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/AlexanderElias/revive/issues/1/comments","events_url":"https://api.github.com/repos/AlexanderElias/revive/issues/1/events","html_url":"https://github.com/AlexanderElias/revive/issues/1","id":160581624,"number":1,"title":"I copied and pasted the example code from readme and it gives me an error when I run the .js file","user":{"login":"jdheeter","id":2530957,"avatar_url":"https://avatars.githubusercontent.com/u/2530957?v=3","gravatar_id":"","url":"https://api.github.com/users/jdheeter","html_url":"https://github.com/jdheeter","followers_url":"https://api.github.com/users/jdheeter/followers","following_url":"https://api.github.com/users/jdheeter/following{/other_user}","gists_url":"https://api.github.com/users/jdheeter/gists{/gist_id}","starred_url":"https://api.github.com/users/jdheeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdheeter/subscriptions","organizations_url":"https://api.github.com/users/jdheeter/orgs","repos_url":"https://api.github.com/users/jdheeter/repos","events_url":"https://api.github.com/users/jdheeter/events{/privacy}","received_events_url":"https://api.github.com/users/jdheeter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-16T05:39:09Z","updated_at":"2016-08-04T19:54:18Z","closed_at":null,"body":"```\r\nC:\\Users\\BOINC\\Desktop\\revivetest>node revive.js\r\n{ pid: undefined,\r\n  name: 'test',\r\n  status: 'started',\r\n  exits: 0,\r\n  stops: 0,\r\n  starts: 1,\r\n  errors: 0,\r\n  sleeps: 0,\r\n  crashes: 0,\r\n  restarts: 0,\r\n  exited: null,\r\n  created: 1466055278899,\r\n  stopped: null,\r\n  started: 1466055278930,\r\n  errored: null,\r\n  sleeped: null,\r\n  crashed: null,\r\n  restarted: null,\r\n  sleepTime: 1000,\r\n  paddingTime: 5000,\r\n  maxSleepCount: 1000,\r\n  cwd: '/home/user/code/node/app/.',\r\n  arg: [ 'app.js' ],\r\n  stdout: '/logs/stdout.log',\r\n  stderr: '/logs/stderr.log',\r\n  env: { PORT: 4444 },\r\n  data: {} }\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: spawn C:\\Program Files\\nodejs\\node.exe ENOENT\r\n    at exports._errnoException (util.js:870:11)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)\r\n    at onErrorNT (internal/child_process.js:344:16)\r\n    at nextTickCallbackWith2Args (node.js:442:9)\r\n    at process._tickCallback (node.js:356:17)\r\n    at Function.Module.runMain (module.js:443:11)\r\n    at startup (node.js:139:18)\r\n    at node.js:968:3\r\n```"},"comment":{"url":"https://api.github.com/repos/AlexanderElias/revive/issues/comments/237664648","html_url":"https://github.com/AlexanderElias/revive/issues/1#issuecomment-237664648","issue_url":"https://api.github.com/repos/AlexanderElias/revive/issues/1","id":237664648,"user":{"login":"AlexanderElias","id":6393261,"avatar_url":"https://avatars.githubusercontent.com/u/6393261?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderElias","html_url":"https://github.com/AlexanderElias","followers_url":"https://api.github.com/users/AlexanderElias/followers","following_url":"https://api.github.com/users/AlexanderElias/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderElias/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderElias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderElias/subscriptions","organizations_url":"https://api.github.com/users/AlexanderElias/orgs","repos_url":"https://api.github.com/users/AlexanderElias/repos","events_url":"https://api.github.com/users/AlexanderElias/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderElias/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T19:54:18Z","updated_at":"2016-08-04T19:54:18Z","body":"@jdheeter \r\n\r\nI believe the issue is because you did not create the following items. These have to be real paths. \r\n\r\n```JSON\r\ncwd: '/home/user/code/node/app/.',\r\narg: [ 'app.js' ],\r\nstdout: '/logs/stdout.log',\r\nstderr: '/logs/stderr.log'\r\n```\r\n\r\n**arg:** Is the file that you want to keep alive or revive. It could have anything in it though.\r\n\r\n**stdout/stderr:** Needs to be a real path that is already created. The file itself does not need to exists but the path does. \r\n\r\n**cwd:** Is the path to your `arg` file so 'app.js'\r\n\r\nIn the same dir as the read code create an app.js file with anything in it. Then change the following.\r\n\r\n```JSON\r\ncwd: '.',\r\narg: [ 'app.js' ],\r\nstdout: 'stdout.log',\r\nstderr: 'stderr.log'\r\n```"}}
{"actor":{"display_login":"AlexanderElias"}}