Polymer / shop

The Shop app
https://shop.polymer-project.org/
986 stars 494 forks source link

Deploy it on heroku #212

Open darse123 opened 5 years ago

darse123 commented 5 years ago

I just installed this project on my local and deploy it on heroku. It is working on my local, but crashed on heroku.

2018-11-26T16:05:14.691728+00:00 app[web.1]: sh: 1: polymer: not found
2018-11-26T16:05:14.736271+00:00 app[web.1]: npm ERR! file sh
2018-11-26T16:05:14.737858+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2018-11-26T16:05:14.740180+00:00 app[web.1]: npm ERR! errno ENOENT
2018-11-26T16:05:14.740507+00:00 app[web.1]: npm ERR! syscall spawn
2018-11-26T16:05:14.750534+00:00 app[web.1]: npm ERR! @polymer/shop@3.0.0 start: `polymer serve`
2018-11-26T16:05:14.750764+00:00 app[web.1]: npm ERR! spawn ENOENT
2018-11-26T16:05:14.752285+00:00 app[web.1]: npm ERR! 
2018-11-26T16:05:14.752592+00:00 app[web.1]: npm ERR! Failed at the @polymer/shop@3.0.0 start script.
2018-11-26T16:05:14.756382+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-11-26T16:05:14.783484+00:00 app[web.1]: 
2018-11-26T16:05:14.789050+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2018-11-26T16:05:14.789230+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2018-11-26T16_05_14_762Z-debug.log
2018-11-26T16:08:44.468570+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=newrelicshopping.herokuapp.com request_id=8f25cb95-d00b-449c-b0da-3f1164f8ea6c fwd="83.174.182.142" dyno= connect= service= status=503 bytes= protocol=https
2018-11-26T16:09:44.562503+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=newrelicshopping.herokuapp.com request_id=4f66a9ac-e4f4-4824-8c6d-887911bb9211 fwd="83.174.182.142" dyno= connect= service= status=503 bytes= protocol=https
2018-11-26T16:09:48.844374+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=newrelicshopping.herokuapp.com request_id=20e6804a-27e4-4fd1-a71d-18ff2cb8e85f fwd="83.174.182.142" dyno= connect= service= status=503 bytes= protocol=https
keanulee commented 5 years ago

Is polymer-cli installed? Does the shell on heroku actually run npm start or the contents of the package.json start script is. npm start is needed if polymer-cli is not installed globally (which is the case if you just ran npm install.

Side note: you should consider deploying the built output in server/ instead.