{"action":"created","issue":{"url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/263","repository_url":"https://api.github.com/repos/coryhouse/react-slingshot","labels_url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/263/comments","events_url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/263/events","html_url":"https://github.com/coryhouse/react-slingshot/issues/263","id":178195177,"number":263,"title":"Deploying on Heroku","user":{"login":"tvarner","id":19756754,"avatar_url":"https://avatars.githubusercontent.com/u/19756754?v=3","gravatar_id":"","url":"https://api.github.com/users/tvarner","html_url":"https://github.com/tvarner","followers_url":"https://api.github.com/users/tvarner/followers","following_url":"https://api.github.com/users/tvarner/following{/other_user}","gists_url":"https://api.github.com/users/tvarner/gists{/gist_id}","starred_url":"https://api.github.com/users/tvarner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvarner/subscriptions","organizations_url":"https://api.github.com/users/tvarner/orgs","repos_url":"https://api.github.com/users/tvarner/repos","events_url":"https://api.github.com/users/tvarner/events{/privacy}","received_events_url":"https://api.github.com/users/tvarner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-20T22:18:48Z","updated_at":"2016-10-07T17:18:25Z","closed_at":null,"body":"Node version: v5.0.0\r\n\r\nnpm version: 3.3.6\r\n\r\nOperating system: OSX\r\n\r\nCommand line used: Terminal\r\n\r\nSteps to reproduce: Clone repot. Run `npm run setup`. Deploy react sling-shot on Heroku. Using the four steps from the Heroku Getting Started Tutorial: https://devcenter.heroku.com/articles/getting-started-with-nodejs#deploy-the-app\r\n\r\nFirst off, thanks for the starter kit. It's been a massive help.\r\n\r\nI was wondering if anyone had any experience deploying react-slingshot to Heroku. I've built two apps on top of it. Both of which I found had memory leaks after running ```$ heroku logs --tail``` after trying to deploy. I wasn't sure where the memory leaks were coming from, so I started with just trying to deploy the example react-slingshot app. This also failed for what looks like a different reason. \r\n\r\nI'm relatively new to Heroku. If anyone who has deployed on Heroku using react-slingshot could point me in the right direction, you'd be a hero. Thanks :)\r\n\r\nWhen I log the details of launching react-slingshot, I get the following output:\r\n\r\n```$ heroku logs --tail\r\n2016-09-20T21:52:41.722414+00:00 heroku[api]: Enable Logplex by thomas.g.varner@gmail.com\r\n2016-09-20T21:52:41.722414+00:00 heroku[api]: Release v2 created by thomas.g.varner@gmail.com\r\n2016-09-20T21:53:21.115338+00:00 heroku[api]: Scale to web=1 by thomas.g.varner@gmail.com\r\n2016-09-20T21:53:21.116298+00:00 heroku[api]: Deploy 884be3c by thomas.g.varner@gmail.com\r\n2016-09-20T21:53:21.116404+00:00 heroku[api]: Release v3 created by thomas.g.varner@gmail.com\r\n2016-09-20T21:53:21.603620+00:00 heroku[slug-compiler]: Slug compilation started\r\n2016-09-20T21:53:21.603625+00:00 heroku[slug-compiler]: Slug compilation finished\r\n2016-09-20T21:53:22.582516+00:00 heroku[web.1]: Starting process with command `npm start`\r\n2016-09-20T21:53:24.423356+00:00 app[web.1]: > example_react_app@0.1.0 prestart /app\r\n2016-09-20T21:53:24.423342+00:00 app[web.1]: \r\n2016-09-20T21:53:24.423357+00:00 app[web.1]: > npm-run-all --parallel start-message remove-dist\r\n2016-09-20T21:53:24.423358+00:00 app[web.1]: \r\n2016-09-20T21:53:24.428706+00:00 app[web.1]: sh: 1: npm-run-all: not found\r\n2016-09-20T21:53:24.438975+00:00 app[web.1]: npm ERR! node v5.11.1\r\n2016-09-20T21:53:24.432801+00:00 app[web.1]: \r\n2016-09-20T21:53:24.438743+00:00 app[web.1]: npm ERR! Linux 3.13.0-95-generic\r\n2016-09-20T21:53:24.438884+00:00 app[web.1]: npm ERR! argv \"/app/.heroku/node/bin/node\" \"/app/.heroku/node/bin/npm\" \"start\"\r\n2016-09-20T21:53:24.439208+00:00 app[web.1]: npm ERR! code ELIFECYCLE\r\n2016-09-20T21:53:24.439045+00:00 app[web.1]: npm ERR! npm  v3.10.7\r\n2016-09-20T21:53:24.439124+00:00 app[web.1]: npm ERR! file sh\r\n2016-09-20T21:53:24.439293+00:00 app[web.1]: npm ERR! errno ENOENT\r\n2016-09-20T21:53:24.439364+00:00 app[web.1]: npm ERR! syscall spawn\r\n2016-09-20T21:53:24.439433+00:00 app[web.1]: npm ERR! example_react_app@0.1.0 prestart: `npm-run-all --parallel start-message remove-dist`\r\n2016-09-20T21:53:24.439699+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n2016-09-20T21:53:24.439494+00:00 app[web.1]: npm ERR! spawn ENOENT\r\n2016-09-20T21:53:24.439870+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:\r\n2016-09-20T21:53:24.439572+00:00 app[web.1]: npm ERR! \r\n2016-09-20T21:53:24.439646+00:00 app[web.1]: npm ERR! Failed at the example_react_app@0.1.0 prestart script 'npm-run-all --parallel start-message remove-dist'.\r\n2016-09-20T21:53:24.439760+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the example_react_app package,\r\n2016-09-20T21:53:24.439816+00:00 app[web.1]: npm ERR! not with npm itself.\r\n2016-09-20T21:53:24.439922+00:00 app[web.1]: npm ERR!     npm-run-all --parallel start-message remove-dist\r\n2016-09-20T21:53:24.440030+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:\r\n2016-09-20T21:53:24.440082+00:00 app[web.1]: npm ERR!     npm bugs example_react_app\r\n2016-09-20T21:53:24.440132+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:\r\n2016-09-20T21:53:24.443565+00:00 app[web.1]: \r\n2016-09-20T21:53:24.440182+00:00 app[web.1]: npm ERR!     npm owner ls example_react_app\r\n2016-09-20T21:53:24.440233+00:00 app[web.1]: npm ERR! There is likely additional logging output above.\r\n2016-09-20T21:53:24.443670+00:00 app[web.1]: npm ERR! Please include the following file with any support request:\r\n2016-09-20T21:53:24.443727+00:00 app[web.1]: npm ERR!     /app/npm-debug.log\r\n2016-09-20T21:53:24.485426+00:00 heroku[web.1]: Process exited with status 1\r\n2016-09-20T21:53:24.499145+00:00 heroku[web.1]: State changed from starting to crashed\r\n2016-09-20T21:53:24.500363+00:00 heroku[web.1]: State changed from crashed to starting\r\n2016-09-20T21:53:26.160823+00:00 heroku[web.1]: Starting process with command `npm start`\r\n2016-09-20T21:53:28.528762+00:00 app[web.1]: \r\n2016-09-20T21:53:28.528778+00:00 app[web.1]: > example_react_app@0.1.0 prestart /app\r\n2016-09-20T21:53:28.528779+00:00 app[web.1]: > npm-run-all --parallel start-message remove-dist\r\n2016-09-20T21:53:28.528780+00:00 app[web.1]: \r\n2016-09-20T21:53:28.535445+00:00 app[web.1]: sh: 1: npm-run-all: not found\r\n2016-09-20T21:53:28.540004+00:00 app[web.1]: \r\n2016-09-20T21:53:28.546468+00:00 app[web.1]: npm ERR! Linux 3.13.0-95-generic\r\n2016-09-20T21:53:28.546625+00:00 app[web.1]: npm ERR! argv \"/app/.heroku/node/bin/node\" \"/app/.heroku/node/bin/npm\" \"start\"\r\n2016-09-20T21:53:28.546748+00:00 app[web.1]: npm ERR! node v5.11.1\r\n2016-09-20T21:53:28.546854+00:00 app[web.1]: npm ERR! npm  v3.10.7\r\n2016-09-20T21:53:28.546967+00:00 app[web.1]: npm ERR! file sh\r\n2016-09-20T21:53:28.547075+00:00 app[web.1]: npm ERR! code ELIFECYCLE\r\n2016-09-20T21:53:28.547179+00:00 app[web.1]: npm ERR! errno ENOENT\r\n2016-09-20T21:53:28.547283+00:00 app[web.1]: npm ERR! syscall spawn\r\n2016-09-20T21:53:28.547372+00:00 app[web.1]: npm ERR! example_react_app@0.1.0 prestart: `npm-run-all --parallel start-message remove-dist`\r\n2016-09-20T21:53:28.547536+00:00 app[web.1]: npm ERR! \r\n2016-09-20T21:53:28.547445+00:00 app[web.1]: npm ERR! spawn ENOENT\r\n2016-09-20T21:53:28.547626+00:00 app[web.1]: npm ERR! Failed at the example_react_app@0.1.0 prestart script 'npm-run-all --parallel start-message remove-dist'.\r\n2016-09-20T21:53:28.547784+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the example_react_app package,\r\n2016-09-20T21:53:28.547859+00:00 app[web.1]: npm ERR! not with npm itself.\r\n2016-09-20T21:53:28.547701+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n2016-09-20T21:53:28.547936+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:\r\n2016-09-20T21:53:28.548008+00:00 app[web.1]: npm ERR!     npm-run-all --parallel start-message remove-dist\r\n2016-09-20T21:53:28.548082+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:\r\n2016-09-20T21:53:28.548155+00:00 app[web.1]: npm ERR!     npm bugs example_react_app\r\n2016-09-20T21:53:28.548227+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:\r\n2016-09-20T21:53:28.548300+00:00 app[web.1]: npm ERR!     npm owner ls example_react_app\r\n2016-09-20T21:53:28.548376+00:00 app[web.1]: npm ERR! There is likely additional logging output above.\r\n2016-09-20T21:53:28.552172+00:00 app[web.1]: \r\n2016-09-20T21:53:28.552332+00:00 app[web.1]: npm ERR! Please include the following file with any support request:\r\n2016-09-20T21:53:28.552404+00:00 app[web.1]: npm ERR!     /app/npm-debug.log\r\n2016-09-20T21:53:28.639797+00:00 heroku[web.1]: State changed from starting to crashed\r\n2016-09-20T21:53:28.624904+00:00 heroku[web.1]: Process exited with status 1```"},"comment":{"url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/comments/252310016","html_url":"https://github.com/coryhouse/react-slingshot/issues/263#issuecomment-252310016","issue_url":"https://api.github.com/repos/coryhouse/react-slingshot/issues/263","id":252310016,"user":{"login":"kwelch","id":1295580,"avatar_url":"https://avatars.githubusercontent.com/u/1295580?v=3","gravatar_id":"","url":"https://api.github.com/users/kwelch","html_url":"https://github.com/kwelch","followers_url":"https://api.github.com/users/kwelch/followers","following_url":"https://api.github.com/users/kwelch/following{/other_user}","gists_url":"https://api.github.com/users/kwelch/gists{/gist_id}","starred_url":"https://api.github.com/users/kwelch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwelch/subscriptions","organizations_url":"https://api.github.com/users/kwelch/orgs","repos_url":"https://api.github.com/users/kwelch/repos","events_url":"https://api.github.com/users/kwelch/events{/privacy}","received_events_url":"https://api.github.com/users/kwelch/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T17:18:25Z","updated_at":"2016-10-07T17:18:25Z","body":"how are you serving dist-server?\r\n\r\nI am using express. \r\n```\r\nvar express = require('express');\r\nvar path = require('path');\r\nvar compression = require('compression');\r\n\r\nvar port = process.env.port || 3000;\r\nvar app = express();\r\n\r\napp.use(compression()); \r\napp.use(express.static(path.join(__dirname, 'app')));\r\n\r\napp.get('*', (_req, res) => {\r\n  res.sendFile(path.join(__dirname, 'app/index.html'));\r\n});\r\n\r\napp.listen(port, (err) => {\r\n  if (err) {\r\n    console.log(err);\r\n  } else {\r\n    console.log(`server started port: ${port}`);\r\n  }\r\n});\r\n```"}}
{"actor":{"display_login":"kwelch"}}