Tuesday, March 17, 2015

Possible to set a custom (non bindAddress) server IP in sourceMappingURL ?

Hi,

I am developing a gwt (2.7.0) application but I am experiencing a major issue when trying to get the soucemaps working in super dev mode.

My development environment is as follows:
  • developing on a linux virtual machine (virtual box) running on Windows 7
  • virtual machine is using NAT for the network
  • using chrome in Windows to test the app with port forwarding
  • port forwarding is setup for all the correct ports
I have to start super dev mode with the -bindAddress set the linux vm eth0 address (10.0.2.15).  With the port forwarding I can access the website with 127.0.0.1:9090/webapp within windows, as it forwards 127.0.0.1:9090 to 10.0.2.15:9090.

The problem comes with the source maps, as the sourceMappingURL is set to http://10.0.2.15:9876/sourcemaps/......., this address is not accessible from within my windows machine. The source maps are working as they are accessible on the following urls:

  • http://127.0.0.1:9876/sourcemaps/..
  • http://localhost:9876/sourcemaps/..
  • http://<hostname>:9876/sourcemaps/..
Is there any way to change the server used in the sourceMappingURL so that it is not hard configured/coded to the bindAddress as set in the super dev mode ????

Any help/advice would be greatly appreciated.

Cheers,

Andy

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment