S
S
SideWest2019-07-23 15:45:47
Node.js
SideWest, 2019-07-23 15:45:47

Heroku doesn't want my app, what should I do?

I started the bot, it opens for me, it works for 50 seconds after the logs are issued

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

On the Internet they say change the port, but what port are we talking about, I have a bot, not a web site: node Bot.js
I run it like this, please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-07-23
@SideWest

Heroku doesn't want my app, what should I do?

Make it sexy so Heroku wants it. So have you tried it? Here is an example:
const express = require('express')
const path = require('path')
const PORT = process.env.PORT || 5000

express()
  .use(express.static(path.join(__dirname, 'public')))
  .set('views', path.join(__dirname, 'views'))
  .set('view engine', 'ejs')
  .get('/', (req, res) => res.render('pages/index'))
  .listen(PORT, () => console.log(`Listening on ${ PORT }`))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question