-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web process failed to bind to $PORT within 60 seconds of launch #119
Comments
Might be resolved with PR #98 |
I solved the problem by using a
I did also run the following command
|
Watch out. This doesn't work on a free dyno. |
The below steps resolved my solution: Editing package.json as: ... and Server.js as: ... |
Thank you. This worked for me 100%. var port = process.env.PORT || 3000; |
var express = require('express'); global.appRoot = path.resolve(__dirname); var port = process.env.PORT | 8000; app.use(express.static(appRoot + '/public/dist')); app.listen(port, '0.0.0.0', function() { I have the same issue but not able to fix it |
It didn't
…On Fri, Dec 14, 2018, 9:52 PM MonX94 ***@***.*** wrote:
Watch out. This doesn't work on a free dyno.
It did.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZgoHokQMy7pSdHkyXTq91j1O9svtvVQks5u5GPQgaJpZM4KBiNN>
.
|
@vincentaudebert do you know the reason why that doesn't work on free dynos? |
When I deploy a Telegram bot built with this module to Heroku, after 60 seconds I get following error:
I couldn't find a way to set a port because there is no
.listen(...)
method when calling the Telegram constructor. Any ideas?The text was updated successfully, but these errors were encountered: