{"action":"created","issue":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/988","labels_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/988/comments","events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/988/events","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/988","id":86450946,"number":988,"title":"How to run grunt as daemon?","user":{"login":"suhyunjeon","id":2241826,"avatar_url":"https://avatars.githubusercontent.com/u/2241826?v=3","gravatar_id":"","url":"https://api.github.com/users/suhyunjeon","html_url":"https://github.com/suhyunjeon","followers_url":"https://api.github.com/users/suhyunjeon/followers","following_url":"https://api.github.com/users/suhyunjeon/following{/other_user}","gists_url":"https://api.github.com/users/suhyunjeon/gists{/gist_id}","starred_url":"https://api.github.com/users/suhyunjeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suhyunjeon/subscriptions","organizations_url":"https://api.github.com/users/suhyunjeon/orgs","repos_url":"https://api.github.com/users/suhyunjeon/repos","events_url":"https://api.github.com/users/suhyunjeon/events{/privacy}","received_events_url":"https://api.github.com/users/suhyunjeon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T05:06:46Z","updated_at":"2015-06-09T05:21:54Z","closed_at":null,"body":"I want to run 'grunt serve' as daemon.\r\n\r\nI tried to grunt-forever like this. \r\nhttps://www.npmjs.com/package/grunt-forever\r\n\r\nin Gruntfile.js\r\n```\r\n    forever: {\r\n      server1: {\r\n        options: {\r\n          index: '<%= yeoman.client %>/app/app.js',\r\n          logDir: 'logs'\r\n        }\r\n      }\r\n    },\r\n```\r\n\r\nAnd I run command like this\r\n```\r\n$ grunt forever:server1:start\r\n```\r\n\r\nResult\r\n```\r\nuser@ubuntu-user:~/dev/trunk/myproject$ grunt forever:server1:start\r\nRunning \"forever:server1:start\" (forever) task\r\nAttempting to start client/app/app.js as daemon.\r\nAdding to config: errFile, undefined\r\nAdding to config: outFile, undefined\r\nAdding to config: logFile, undefined\r\nLogs can be found at /home/user/dev/trunk/myproject/logs.\r\n\r\nDone, without errors.\r\n\r\n\r\nExecution Time (2015-06-09 05:07:58 UTC)\r\nloading tasks          275ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 93%\r\nforever:server1:start   18ms  ▇▇▇▇▇▇▇▇▇ 6%\r\nTotal 295ms\r\n\r\n```\r\n\r\nIt did not works. I also tried to command like this. If I touch ctrl+c, it is close. \r\n```\r\n$ grunt serve &\r\n```\r\n\r\nDo you have any idea how to runt grunt as daemon?"},"comment":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/comments/110228337","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/988#issuecomment-110228337","issue_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/988","id":110228337,"user":{"login":"Awk34","id":5545474,"avatar_url":"https://avatars.githubusercontent.com/u/5545474?v=3","gravatar_id":"","url":"https://api.github.com/users/Awk34","html_url":"https://github.com/Awk34","followers_url":"https://api.github.com/users/Awk34/followers","following_url":"https://api.github.com/users/Awk34/following{/other_user}","gists_url":"https://api.github.com/users/Awk34/gists{/gist_id}","starred_url":"https://api.github.com/users/Awk34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awk34/subscriptions","organizations_url":"https://api.github.com/users/Awk34/orgs","repos_url":"https://api.github.com/users/Awk34/repos","events_url":"https://api.github.com/users/Awk34/events{/privacy}","received_events_url":"https://api.github.com/users/Awk34/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T05:21:54Z","updated_at":"2015-06-09T05:21:54Z","body":"Err not `server.js`, `app.js`. When you run `grunt build` it will make a `dist` subdirectory. You can find the file in the `server` folder."}}