离线玩游戏 [英] Play working offline
问题描述
我想离线启动我的游戏应用程序.我只能通过本地网络通过ssh进行访问,并且服务器位于防火墙之后.我试图在plugins.sbt中将离线设置为:= true,但没有帮助. Play仍在尝试与远程存储库连接:
I want to start my play application offline. I got only access by ssh via local network and server is behind firewall. I've tried to set offline := true in plugins.sbt but it didn't helped. Play is still trying to connnect with remote repos:
[error] Server access Error: Connection timed out url=http://repo.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-compiler/2.10.2/ivys/ivy.xml
我知道连接超时"是防火墙问题,但是我无法更改设置...
I know, that "Connection timed out" is firewall issue, but I can't change settings...
推荐答案
使用play dist
命令准备独立版本的应用程序,然后在脱机服务器上使用它.它将获取所有必需的依赖项,因此不再需要连接到外部存储库.
Use play dist
command to prepare standalone version of your application and then use it on the offline server. It will fetch all required dependencies, so won't require connection to external repos anymore.
更多详细信息,请参见 Play的文档
More details at Play's docs
这篇关于离线玩游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!