any benefits to use Application.main() over embedd...
# ktor
m
any benefits to use Application.main() over embeddedServer() or vice versa?
o
They are not mutually exclusive. Development engine setup is just a convenient method to run embedded host without setting up much. We should clean it up in docs @Deactivated User
m
thanks!
d
Taking notes. Thanks for the feedback! Also it allows you to externally set some configuration like the port, environment, watch, autoreload without recompiling. So for example you could have a packed JAR, and change that just by switching the
application.conf
without recompiling/repacking. The
main
method with
embeddedServer()
is complementary. You can have both and use that main as your entry point to easily run your app within your IDE.