{"action":"closed","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2512","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2512/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2512/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2512/events","html_url":"https://github.com/Unitech/pm2/issues/2512","id":188855318,"number":2512,"title":"Make pm2 generate actually helpful. ","user":{"login":"Phara0h","id":1054802,"avatar_url":"https://avatars.githubusercontent.com/u/1054802?v=3","gravatar_id":"","url":"https://api.github.com/users/Phara0h","html_url":"https://github.com/Phara0h","followers_url":"https://api.github.com/users/Phara0h/followers","following_url":"https://api.github.com/users/Phara0h/following{/other_user}","gists_url":"https://api.github.com/users/Phara0h/gists{/gist_id}","starred_url":"https://api.github.com/users/Phara0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phara0h/subscriptions","organizations_url":"https://api.github.com/users/Phara0h/orgs","repos_url":"https://api.github.com/users/Phara0h/repos","events_url":"https://api.github.com/users/Phara0h/events{/privacy}","received_events_url":"https://api.github.com/users/Phara0h/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-11T21:31:10Z","updated_at":"2016-11-11T22:44:17Z","closed_at":"2016-11-11T22:44:17Z","body":"Since there is no way to 'pm2 resurrect' pointing to any dump you saved off from another server, 'pm2 generate' should generate you a app.js based off your current running processes and configuration. \r\n\r\n#### Expected behaviour\r\n\r\n'pm2 generate' should take your current running processes/configuration and generate you an app.js file with that information.\r\n\r\n...\r\n\r\n#### Actual behaviour\r\n'pm2 generate' generates a generic sample file which is quite useless since you can get that from the documentation \r\n...\r\n\r\n#### Steps to reproduce\r\n\r\ntype 'pm2 generate' and be disappointed with the results. \r\n\r\n...\r\n\r\n#### Software versions used\r\n\r\n```\r\nOS         :\r\nnode.js    :\r\nPM2        :\r\n```\r\n\r\n#### PM2 Log output\r\n\r\nUse the command: `tail --lines 50 ~/.pm2/pm2.log`\r\n\r\n```\r\n...\r\n```\r\n\r\ncf CONTRIBUTING.md for more informations\r\n"}}
{"actor":{"display_login":"vmarchaud"}}