Polymer / prpl-server

⚠️Maintenance mode⚠️ An HTTP server for Node designed to serve PRPL apps in production.
Other
425 stars 29 forks source link

Doesn't work on Heroku #52

Closed tpluscode closed 7 years ago

tpluscode commented 7 years ago

I'm trying to serve an app from Heroku using locally installed prpl-server:

./node_modules/prpl-server/bin/prpl-server --root build --port $PORT --https-redirect

It seems to start fine but apparently doesn't satisfy the Dyno on binding to the port. Here's the output:

Serving files from "/app/build".
Detected push manifest "prod-new/push-manifest.json".
Detected push manifest "prod-old/push-manifest.json".
Detected push manifest "fallback/push-manifest.json".
Registered entrypoint "prod-new/index.html" with capabilities [es2015,push].
Registered entrypoint "prod-old/index.html" with capabilities [es2015].
Registered entrypoint "fallback/index.html" with capabilities [].
[35;1mprpl-server listening
http://127.0.0.1:25133
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Stopping process with SIGKILL
Process exited with status 137
State changed from starting to crashed
State changed from crashed to starting
aomarks commented 7 years ago

Hi @tpluscode. Try adding --host 0.0.0.0. By default prpl-server only listens on localhost.