Heroku recently began supporting Java apps. Looking through the docs, it seems to resemble the Java Servlet Standard. Does anyone know of an instance where a GWT app has been successfully deployed on Heroku? If so, are there any limitations?
Heroku recently began supporting Java apps. Looking through the docs, it seems to resemble
Share
My first answer to this turned out to have problems when GWT tried to read its serialization policy. In the end I went for a simpler approach that was less Guice-based. I had to step through the Jetty code to understand why
setBaseResource()was the way to go – it’s not immediately obvious from the Javadoc.Here’s my server class – the one with the main() method that you point Heroku at via your app-assembler plugin as per the Heroku docs.
AppConfig.java is a GuiceServletContextListener.
You then put your static resources under
src/main/resources/static/.