htmlgwtplayn

How to Run my playN game in production mode locally?


I want to run my playN game in production mode as the development mode is too slow to test. I am not able to click and get the response for buttons and it updates very slow in dev mode. I have read that substituting the IP of the link with "localhost" will do. But even after i have done the same, It is too slow like before.

I need to run the html version only. How can I do this?


Solution

  • You should try running it having the test-html profile active. From PlayN's getting started page:

    cd playn-samples/showcase
    mvn clean package
    mvn test -Ptest-html
    

    Then just browse to http://localhost:8080/ once Jetty has started. I find it significantly faster than development mode. Just substitute the showcase with your own application.