Git Product home page Git Product logo

Comments (5)

emmenko avatar emmenko commented on July 4, 2024

Hey, thanks!

Well, I'm not sure if deployment to Heroku should be part of this example. What is exactly the problem that you're having?

from redux-react-router-async-example.

timdoes avatar timdoes commented on July 4, 2024

Hi thanks for the response. I am curious if you know a quick fix for deploying to Heroku (or a resource that would help). If not, please do not spend any time on this :)

Just in case, here are the example site and logs.

https://starter-redux.herokuapp.com/

starter-redux-react-router-async(master) > heroku logs --tail
2015-07-06T18:31:17.614201+00:00 app[web.1]: npm ERR! 
2015-07-06T18:31:17.614050+00:00 app[web.1]: npm ERR! Exit status 1
2015-07-06T18:31:17.614352+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'npm run build && node server.js'.
2015-07-06T18:31:17.614740+00:00 app[web.1]: npm ERR! This is most likely a problem with the redux-react-router-async-example package,
2015-07-06T18:31:17.614876+00:00 app[web.1]: npm ERR! not with npm itself.
2015-07-06T18:31:17.615310+00:00 app[web.1]: npm ERR! You can get their info via:
2015-07-06T18:31:17.615001+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-07-06T18:31:17.615181+00:00 app[web.1]: npm ERR!     npm run build && node server.js
2015-07-06T18:31:17.615451+00:00 app[web.1]: npm ERR!     npm owner ls redux-react-router-async-example
2015-07-06T18:31:17.618365+00:00 app[web.1]: 
2015-07-06T18:31:17.615594+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-07-06T18:31:18.380538+00:00 heroku[web.1]: State changed from starting to crashed
2015-07-06T18:31:18.381806+00:00 heroku[web.1]: State changed from crashed to starting
2015-07-06T18:31:18.366789+00:00 heroku[web.1]: Process exited with status 1
2015-07-06T18:31:21.400577+00:00 heroku[web.1]: Starting process with command `npm start`
2015-07-06T18:31:23.336414+00:00 app[web.1]: Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
2015-07-06T18:31:23.336490+00:00 app[web.1]: Recommending WEB_CONCURRENCY=1
2015-07-06T18:31:24.058506+00:00 app[web.1]: 
2015-07-06T18:31:24.058515+00:00 app[web.1]: 
2015-07-06T18:31:24.058511+00:00 app[web.1]: > [email protected] start /app
2015-07-06T18:31:24.058513+00:00 app[web.1]: > npm run build && node server.js
2015-07-06T18:31:24.833193+00:00 app[web.1]: > [email protected] build /app
2015-07-06T18:31:24.833197+00:00 app[web.1]: > npm run clean && npm run lint && webpack
2015-07-06T18:31:24.833198+00:00 app[web.1]: 
2015-07-06T18:31:24.833185+00:00 app[web.1]: 
2015-07-06T18:31:25.892303+00:00 app[web.1]: 
2015-07-06T18:31:25.892308+00:00 app[web.1]: > [email protected] clean /app
2015-07-06T18:31:25.892311+00:00 app[web.1]: 
2015-07-06T18:31:25.892310+00:00 app[web.1]: > rm -rf dist
2015-07-06T18:31:26.833574+00:00 app[web.1]: 
2015-07-06T18:31:26.839849+00:00 app[web.1]: npm ERR! node v0.12.6
2015-07-06T18:31:26.839618+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "run" "lint"
2015-07-06T18:31:26.840349+00:00 app[web.1]: npm ERR! npm  v2.11.2
2015-07-06T18:31:26.803715+00:00 app[web.1]: 
2015-07-06T18:31:26.841049+00:00 app[web.1]: npm ERR! errno ENOENT
2015-07-06T18:31:26.803719+00:00 app[web.1]: > [email protected] lint /app
2015-07-06T18:31:26.803721+00:00 app[web.1]: > eslint lib
2015-07-06T18:31:26.873405+00:00 app[web.1]: npm ERR! Linux 3.13.0-49-generic
2015-07-06T18:31:26.840664+00:00 app[web.1]: npm ERR! file sh
2015-07-06T18:31:26.842275+00:00 app[web.1]: npm ERR! Failed at the [email protected] lint script 'eslint lib'.
2015-07-06T18:31:26.803723+00:00 app[web.1]: 
2015-07-06T18:31:26.842467+00:00 app[web.1]: npm ERR! This is most likely a problem with the redux-react-router-async-example package,
2015-07-06T18:31:26.839076+00:00 app[web.1]: npm ERR! Linux 3.13.0-49-generic
2015-07-06T18:31:26.825949+00:00 app[web.1]: sh: 1: eslint: not found
2015-07-06T18:31:26.841641+00:00 app[web.1]: npm ERR! [email protected] lint: `eslint lib`
2015-07-06T18:31:26.841778+00:00 app[web.1]: npm ERR! spawn ENOENT
2015-07-06T18:31:26.843262+00:00 app[web.1]: npm ERR!     npm owner ls redux-react-router-async-example
2015-07-06T18:31:26.840847+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-07-06T18:31:26.841254+00:00 app[web.1]: npm ERR! syscall spawn
2015-07-06T18:31:26.874408+00:00 app[web.1]: npm ERR! node v0.12.6
2015-07-06T18:31:26.875376+00:00 app[web.1]: npm ERR! 
2015-07-06T18:31:26.903870+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2015-07-06T18:31:26.842009+00:00 app[web.1]: npm ERR! 
2015-07-06T18:31:26.846584+00:00 app[web.1]: 
2015-07-06T18:31:26.874952+00:00 app[web.1]: npm ERR! [email protected] build: `npm run clean && npm run lint && webpack`
2015-07-06T18:31:26.904878+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-07-06T18:31:26.874774+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2015-07-06T18:31:26.875640+00:00 app[web.1]: npm ERR! Failed at the [email protected] build script 'npm run clean && npm run lint && webpack'.
2015-07-06T18:31:26.897930+00:00 app[web.1]: 
2015-07-06T18:31:26.874597+00:00 app[web.1]: npm ERR! npm  v2.11.2
2015-07-06T18:31:26.875096+00:00 app[web.1]: npm ERR! Exit status 1
2015-07-06T18:31:26.881296+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-07-06T18:31:26.842640+00:00 app[web.1]: npm ERR! not with npm itself.
2015-07-06T18:31:26.842793+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-07-06T18:31:26.843440+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-07-06T18:31:26.876503+00:00 app[web.1]: npm ERR! not with npm itself.
2015-07-06T18:31:26.842922+00:00 app[web.1]: npm ERR!     eslint lib
2015-07-06T18:31:26.843096+00:00 app[web.1]: npm ERR! You can get their info via:
2015-07-06T18:31:26.846850+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2015-07-06T18:31:26.880900+00:00 app[web.1]: 
2015-07-06T18:31:26.876062+00:00 app[web.1]: npm ERR! This is most likely a problem with the redux-react-router-async-example package,
2015-07-06T18:31:26.905976+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-07-06T18:31:26.906316+00:00 app[web.1]: npm ERR! You can get their info via:
2015-07-06T18:31:26.881169+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2015-07-06T18:31:26.904578+00:00 app[web.1]: npm ERR! npm  v2.11.2
2015-07-06T18:31:26.906450+00:00 app[web.1]: npm ERR!     npm owner ls redux-react-router-async-example
2015-07-06T18:31:26.904127+00:00 app[web.1]: npm ERR! node v0.12.6
2015-07-06T18:31:26.905193+00:00 app[web.1]: npm ERR! Exit status 1
2015-07-06T18:31:26.905360+00:00 app[web.1]: npm ERR! 
2015-07-06T18:31:26.905509+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'npm run build && node server.js'.
2015-07-06T18:31:26.905836+00:00 app[web.1]: npm ERR! not with npm itself.
2015-07-06T18:31:26.846982+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-07-06T18:31:26.876792+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2015-07-06T18:31:26.909617+00:00 app[web.1]: 
2015-07-06T18:31:26.867835+00:00 app[web.1]: 
2015-07-06T18:31:26.903321+00:00 app[web.1]: npm ERR! Linux 3.13.0-49-generic
2015-07-06T18:31:26.877201+00:00 app[web.1]: npm ERR! You can get their info via:
2015-07-06T18:31:26.910151+00:00 app[web.1]: npm ERR!     /app/npm-debug.log
2015-07-06T18:31:26.905699+00:00 app[web.1]: npm ERR! This is most likely a problem with the redux-react-router-async-example package,
2015-07-06T18:31:26.906183+00:00 app[web.1]: npm ERR!     npm run build && node server.js
2015-07-06T18:31:26.877471+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-07-06T18:31:26.905055+00:00 app[web.1]: npm ERR! [email protected] start: `npm run build && node server.js`
2015-07-06T18:31:26.906594+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2015-07-06T18:31:26.873921+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "run" "build"
2015-07-06T18:31:26.876971+00:00 app[web.1]: npm ERR!     npm run clean && npm run lint && webpack
2015-07-06T18:31:26.877298+00:00 app[web.1]: npm ERR!     npm owner ls redux-react-router-async-example
2015-07-06T18:31:26.910002+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2015-07-06T18:31:27.720057+00:00 heroku[web.1]: State changed from starting to crashed
2015-07-06T18:31:27.709584+00:00 heroku[web.1]: Process exited with status 1
2015-07-06T18:31:41.605450+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=starter-redux.herokuapp.com request_id=a76c7b37-85f6-45fb-945f-b91e801b1688 fwd="68.224.233.116" dyno= connect= service= status=503 bytes=
2015-07-06T18:31:41.898377+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=starter-redux.herokuapp.com request_id=6683582d-3050-4f86-9d27-6d9bb0df9bf7 fwd="68.224.233.116" dyno= connect= service= status=503 bytes=

from redux-react-router-async-example.

emmenko avatar emmenko commented on July 4, 2024

Hmm, first of all I wouldn't use npm start, this is meant to be used for development.
You should build your bundle with npm run dist and serve it from a static http server.

From what I see the error says eslint: not found, which makes me think it's not installed. Try running NODE_ENV=test npm i, which will install the devDependencies (if NODE_ENV is set to production it will install only the dependencies).

PS: why do you want to deploy to heroku?

from redux-react-router-async-example.

timdoes avatar timdoes commented on July 4, 2024

Heroku just seems like a great place to test server-side deployment and metrics for free/cheap.

npm start is there free dyno so I can just chain my scripts to that command. I will mess with it for a bit and will post a solution once I find it.

Do you have a recommendation other than Heroku?

from redux-react-router-async-example.

timdoes avatar timdoes commented on July 4, 2024

I ended up taking your advice and serving to a static http server with Digital Ocean instead of deploying to Heroku. Thank you for this boilerplate as well as the help.

from redux-react-router-async-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.