DEV Community

Discussion on: Publishing server-side Kotlin applications: Ktor on Heroku

 
andresantospt profile image
André L. Santos

now it works when I run the binary produced by gradle stage. however, when uploading to Heroku, the app still crashes. Here's the log entry:
2021-01-28T11:18:09.671617+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=qlciscte.herokuapp.com request_id=fbea81df-588f-443f-a520-7072d3110169 fwd="94.63.156.9" dyno= connect= service= status=503 bytes= protocol=https

It's not very informative. Do you know any trick to get a more detailed trace of what went wrong on Heroku?

Thread Thread
 
sebastianaigner profile image
Sebastian Aigner

Discovered the issue by running heroku logs --tail before actually triggering a build. That gave me:

2021-01-28T12:13:20.330000+00:00 app[web.1]: bash: build/install/untitled/bin/untitled: No such file or directory
Enter fullscreen mode Exit fullscreen mode

You might want to adjust the contents of your Procfile, since your project is no longer called untitled 😉

Thread Thread
 
andresantospt profile image
André L. Santos

meanwhile I also noticed that :) now I have another problem, but that has to with class version compilation of some libs i'm using.
thanks for the tip!