Search code examples
gwtgo

How to pass data by host page when using golang as gwt 's backend?


Currently,my configuration is like this:

gwt+nginx+golang

,and nginx works as a proxy that will redirect all requests(on port:80) to golang server(on port:8080).Since I use golang as backend,so I want user to access my website by

www.domain.com 

directly without specifing host page like this:

www.domain.com/index.html.

I think it should be easy in production model:just proxy all requests on / to a golang service,question is on development model:without a host page,How to get gwt app run up?


Solution

  • DevMode is no different actually. Deploy a compiled version on your server once, then run DevMode in -noserver mode passing it -startupUrl http://www.domain.com. It should Just Work™.