如何在本地生产模式下运行我的playN游戏? [英] How to Run my playN game in production mode locally?
问题描述
我想在生产模式下运行我的playN游戏,因为开发模式太慢而无法测试。我无法点击并获得按钮响应,并且在开发模式下更新非常慢。我已经读过,用localhost代替链接的IP会做。但即使我做了同样的事情,它也像以前一样缓慢。
我只需要运行html版本。我该如何做到这一点?
您应该尝试运行test-html配置文件。从PlayN的入门页面:
cd playn-samples / showcase
mvn clean package
mvn test -Ptest-html
然后浏览至 http:// localhost:8080 / < /一旦Jetty启动。我发现它比开发模式快得多。只需用您自己的应用程序替换陈列柜即可。
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?
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.
这篇关于如何在本地生产模式下运行我的playN游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!