Hi! Newbie here. I have a ktor project and want to...
# gradle
ł
Hi! Newbie here. I have a ktor project and want to inject external .war files to my build and deploy them together with my app with exposed endpoints for each. I have no idea how to achieve this - any pointers would be much appreciated.
c
What is in the war files?
ł
One of them is a complex app (http://geoserver.org/) with web interface which I would like exposed.
c
you can package your ktor app as a WAR and deploy all the wars in on server like Netty, Jetty or Tomcat.
What is your deployment environment?
ł
Azure Web App
c
Why not deploy the wars separately within names in the same domain?
ł
This is my plan B. However, I wanted to have a single fat JAR with embedded Tomcat, app and WAR dependencies for hassle free deployment.
I was also thnking about EAR, but no expierience there either.
c
In the long run it will probably be the best to deploy each application separately. Ktor as an executable jar. Geoserver as a war in Tomcat or similar. You aren't going to redeploy geoserver often. But I imagine your app will be deployed more frequently. They're going to require different scaling depending on the usage.
ł
Thank you Corneil, that's probably what I am going to end up doing ;)