How to Run my playN game in production mode locally?

那年仲夏 提交于 2019-12-23 05:15:11

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9976427/how-to-run-my-playn-game-in-production-mode-locally

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!