Manuel Lorenzo
09/18/2019, 3:46 PMProcfile
that points where the scripts are, web: ./build/scripts/myapp
but I still see if I run heroku logs --tail
this: 2019-09-18T15:43:48.000000+00:00 app[api]: Build started by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:43.005061+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-18T15:44:42.815943+00:00 app[api]: Release v12 created by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:42.815943+00:00 app[api]: Deploy c26b0ff0 by user <mailto:me@gmail.com|me@gmail.com>
2019-09-18T15:44:46.857033+00:00 heroku[web.1]: Starting process with command `./build/scripts/myapp`
2019-09-18T15:44:48.994734+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-18T15:44:48.978657+00:00 heroku[web.1]: Process exited with status 1
2019-09-18T15:44:48.764617+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2019-09-18T15:44:48.780285+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
2019-09-18T15:44:48.927548+00:00 app[web.1]: Error: Could not find or load main class io.ktor.server.netty.EngineMain
2019-09-18T15:45:15.000000+00:00 app[api]: Build succeeded
cy
09/18/2019, 3:47 PMktor-server-netty
is not packaged for some reasonManuel Lorenzo
09/18/2019, 3:49 PMManuel Lorenzo
09/18/2019, 3:50 PMbuild.gradle
I should have apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = "io.ktor.server.netty.EngineMain"
?Manuel Lorenzo
09/18/2019, 3:50 PMcy
09/18/2019, 3:51 PMcy
09/18/2019, 3:51 PMcy
09/18/2019, 3:51 PMcy
09/18/2019, 3:52 PMktor-server-netty
dependency? Do you use application.conf?Manuel Lorenzo
09/18/2019, 3:52 PMfun main(args: Array<String>): Unit = EngineMain.main(args)
Manuel Lorenzo
09/18/2019, 3:52 PMktor-server-netty
dependencyManuel Lorenzo
09/18/2019, 3:53 PMktor {
deployment {
port = 8080
port = ${?PORT}
}
application {
modules = [me.manulorenzo.myApp.main]
}
}
cy
09/18/2019, 3:53 PMscripts/myapp
?Manuel Lorenzo
09/18/2019, 3:54 PMManuel Lorenzo
09/18/2019, 3:55 PMstage
gradle taskManuel Lorenzo
09/18/2019, 3:55 PMcy
09/18/2019, 3:55 PMcy
09/18/2019, 3:56 PMManuel Lorenzo
09/18/2019, 3:57 PMcy
09/18/2019, 3:57 PMManuel Lorenzo
09/18/2019, 3:57 PMcy
09/18/2019, 3:58 PMcy
09/18/2019, 3:59 PMcy
09/18/2019, 3:59 PMcy
09/18/2019, 4:01 PMstage
task can use Procfile
, so simply specify a path to a fat-jar inside of the filecy
09/18/2019, 4:05 PMManuel Lorenzo
09/18/2019, 4:07 PMManuel Lorenzo
09/18/2019, 4:10 PM./build/install/myapp/bin/myapp
, but for some reason that folder was never builtManuel Lorenzo
09/18/2019, 5:10 PM