0
votes

I created a bot for discord. Then i created executable jar file by eclipse (maven project). Then i deploing this file in heroku, using this documentation enter link description here And its worked, but then app crashed by R10 error.

my Procfile web (Free): java $JAVA_OPTS -jar jarvis.jar $JAR_OPTS

Logs 2018-10-07T19:08:05.426794+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Webprocess failed to bind to $PORT within 90 seconds of launch 2018-10-07T19:08:05.426794+00:00 heroku[web.1]: Stopping process with SIGKILL 2018-10-07T19:08:05.566438+00:00 heroku[web.1]: Process exited with status 137 2018-10-07T19:08:05.579345+00:00 heroku[web.1]: State changed from starting to crashed

How can i fixed it?

1
in documentation i using only Using the Heroku Java CLI pluginfedot deon
I'm not sure how Discord bots run. Does yours respond to HTTP requests? Heroku expects your application to do this, just as a regular web application would, and it gives you a port to use for that purpose. Your code isn't listening on the provided port.Chris
how i can do this?fedot deon
Please answer my question first: is your bot supposed to respond to HTTP requests? If it isn't it probably isn't a good fit for Heroku.Chris
no its connected by discord standalone appfedot deon

1 Answers

0
votes

If the bot doesn't handle HTTP requests, you'll need a Procfile with a process type other than web:.