{"action":"created","issue":{"url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/25","repository_url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate","labels_url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/25/comments","events_url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/25/events","html_url":"https://github.com/danielfsousa/express-rest-es2017-boilerplate/issues/25","id":279337508,"number":25,"title":"Best way to run command line tasks","user":{"login":"lardissone","id":59826,"avatar_url":"https://avatars2.githubusercontent.com/u/59826?v=4","gravatar_id":"","url":"https://api.github.com/users/lardissone","html_url":"https://github.com/lardissone","followers_url":"https://api.github.com/users/lardissone/followers","following_url":"https://api.github.com/users/lardissone/following{/other_user}","gists_url":"https://api.github.com/users/lardissone/gists{/gist_id}","starred_url":"https://api.github.com/users/lardissone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lardissone/subscriptions","organizations_url":"https://api.github.com/users/lardissone/orgs","repos_url":"https://api.github.com/users/lardissone/repos","events_url":"https://api.github.com/users/lardissone/events{/privacy}","received_events_url":"https://api.github.com/users/lardissone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-05T11:17:14Z","updated_at":"2018-02-15T19:35:51Z","closed_at":null,"author_association":"NONE","body":"I would like to run several tasks in the server like cron or manually executed ones (like creating a super user after first install), how do you suggest to implement it? \r\n\r\nI prefer not to deal with API calls directly since most of the commands runs on bash one liners (like a cron command).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/comments/366037567","html_url":"https://github.com/danielfsousa/express-rest-es2017-boilerplate/issues/25#issuecomment-366037567","issue_url":"https://api.github.com/repos/danielfsousa/express-rest-es2017-boilerplate/issues/25","id":366037567,"user":{"login":"danielfsousa","id":11372312,"avatar_url":"https://avatars0.githubusercontent.com/u/11372312?v=4","gravatar_id":"","url":"https://api.github.com/users/danielfsousa","html_url":"https://github.com/danielfsousa","followers_url":"https://api.github.com/users/danielfsousa/followers","following_url":"https://api.github.com/users/danielfsousa/following{/other_user}","gists_url":"https://api.github.com/users/danielfsousa/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfsousa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfsousa/subscriptions","organizations_url":"https://api.github.com/users/danielfsousa/orgs","repos_url":"https://api.github.com/users/danielfsousa/repos","events_url":"https://api.github.com/users/danielfsousa/events{/privacy}","received_events_url":"https://api.github.com/users/danielfsousa/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T19:35:51Z","updated_at":"2018-02-15T19:35:51Z","author_association":"OWNER","body":"Why don't you ssh into the virtual machine and run a custom npm command?\r\n\r\nI would create and API if some other app needs to communicate with it, but for manually executed scripts I set some custom npm scripts in the package.json.\r\n\r\nThere is one npm hook 'postinstall' that you could use in your example: https://docs.npmjs.com/misc/scripts"}}
{"actor":{"display_login":"danielfsousa"}}