Answer the question
In order to leave comments, you need to log in
What to write in Procfile to deploy a project on heroku?
I'm trying to deploy a bot for tg on heroku for the first time. Written in java using gradle. Deployment is normal (Your app was successfully deployed), but when I click on the view button, it throws me on a page with the inscription "An error occurred in the application and your page could not be served" and the bot in the tg also does not work, respectively.
With the heroku logs --tail command, I see the error log: error code=H14 desc="No web processes running".
I think that I have problems with the Procfile. I did not really understand what it is required to prescribe in my case. On forums and in articles they write "you need to write something like this: web: java -Dserver.port=$PORT -jar target/project-name-1.0.jar". I really like the wording with "something like this", something like this I write and the bot does not start.
Answer the question
In order to leave comments, you need to log in
There is a demo project with Gradle and Procfile:
https://github.com/heroku/gradle-getting-started
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question