{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2014","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2014/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2014/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2014/events","html_url":"https://github.com/Unitech/pm2/issues/2014","id":140410854,"number":2014,"title":"Enter command inside node.js script running (and view the console) via pm2","user":{"login":"Ogarunite","id":16456554,"avatar_url":"https://avatars.githubusercontent.com/u/16456554?v=3","gravatar_id":"","url":"https://api.github.com/users/Ogarunite","html_url":"https://github.com/Ogarunite","followers_url":"https://api.github.com/users/Ogarunite/followers","following_url":"https://api.github.com/users/Ogarunite/following{/other_user}","gists_url":"https://api.github.com/users/Ogarunite/gists{/gist_id}","starred_url":"https://api.github.com/users/Ogarunite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ogarunite/subscriptions","organizations_url":"https://api.github.com/users/Ogarunite/orgs","repos_url":"https://api.github.com/users/Ogarunite/repos","events_url":"https://api.github.com/users/Ogarunite/events{/privacy}","received_events_url":"https://api.github.com/users/Ogarunite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-12T19:44:43Z","updated_at":"2016-03-14T09:47:43Z","closed_at":"2016-03-14T09:47:43Z","body":"Hi, when I start a node.js server via pm2 start server.js I can't actually see the output from the server.js, and I can't either type any commands in via pm2 to the server.js from the console. \r\nHow can i view the output from server.js and type commands into server.js when running it via pm2?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/196230169","html_url":"https://github.com/Unitech/pm2/issues/2014#issuecomment-196230169","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/2014","id":196230169,"user":{"login":"Unitech","id":757747,"avatar_url":"https://avatars.githubusercontent.com/u/757747?v=3","gravatar_id":"","url":"https://api.github.com/users/Unitech","html_url":"https://github.com/Unitech","followers_url":"https://api.github.com/users/Unitech/followers","following_url":"https://api.github.com/users/Unitech/following{/other_user}","gists_url":"https://api.github.com/users/Unitech/gists{/gist_id}","starred_url":"https://api.github.com/users/Unitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unitech/subscriptions","organizations_url":"https://api.github.com/users/Unitech/orgs","repos_url":"https://api.github.com/users/Unitech/repos","events_url":"https://api.github.com/users/Unitech/events{/privacy}","received_events_url":"https://api.github.com/users/Unitech/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T09:47:43Z","updated_at":"2016-03-14T09:47:43Z","body":"To view the output of server.js, just check the logs via `pm2 logs server`.\r\n\r\nYou cannot attach the standard input of your application to the current terminal."}}