The best way to deploy a (J) Ruby application along with several html5 / gwt games built with Libgdx

I found out about the libgdx structure, and I'm totally in love with it. My partners and I have been developing several games over the past few months and are starting to think about deploying.

We smoothed out most of the wrinkles with our android and iOS builds. Now we are thinking about gwt builds. I created a small Ruby on Rails website (MRI ... for now) where we would like to host a GWT version of these games.

By default, libgdx creates the .war package. I did some research, and it seems quite possible and normal to deploy several wars on one application server. This is good, because I think that for every tiny gwt game it would be superfluous to have a dedicated application server. Then with Warbler, it seems like I could pack my RoR app and become a war. The problem is solved. Nice and neat.

I'm just wondering if this is the easiest way. I am not very familiar with GWT, but it seems that the final product is just javascript (maybe a lot of dependent assets ...). Would it be easier to extract js from the war package, maybe upload them to s3 or something similar, and just ask my (already built and deployed) MRI RoR application to serve them like any other page?

I would be very grateful for the understanding of those who have more experience than mine.

Thank you very much, and if you want to get more detailed information about the problem, please comment and I will edit the question accordingly.

Edit:

Sorry, after further reflection, I suppose my question comes down to this. Which way is wiser? 1) Convert your existing application and rail infrastructure to launch a war package so that the games (currently in military packages) and webapp will work neatly next to each other. 2) extract js and assets from the war package and ask them to work neatly next to my existing MRI rails application.

+3
source share

All Articles