编译Play 2.x - Java应用程序超时(15分钟)| Heroku和Play框架

4
我正在尝试使用"git push heroku master"将我的基于Play Framework 2.2.2开发的应用部署到Heroku。 我的应用目录中包含所有使用play创建的项目文件和目录: -.idea -.idea_modules -.settings -app -conf -logs -project -public -target -test -web -build.sbt
这是我得到的结果:
       [info] Resolving org.seleniumhq.selenium#selenium-parent;2.32.0 ...
       [info] Resolving org.seleniumhq.selenium#selenium-safari-driver;2.32.0
.
       [info] Resolving org.seleniumhq.selenium#selenium-parent;2.32.0 ...

 !     Timed out compiling Play 2.x - Java app (15 minutes)
 !     See https://devcenter.heroku.com/articles/slug-compiler#time-limit

To git@heroku.com:warm-escarpment-8855.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:warm-escarpment-8855.git'

我也不知道如何使用 .slugignore,应该放在哪里,哪些文件是重要的或者不重要的。

有人能帮我吗?谢谢提前!


好的,您可以在应用程序目录的根目录中包含.slugignore文件,其中您可能有您的gitignore文件..为了创建.slugignore文件,只需复制并更改扩展名为.gitignore..您可以添加诸如psd、pdf或图像、目录之类的文件,将其排除或从蛞蝓创建中排除。 - Palak Darji
1
我在Heroku支持区发布了这个问题,似乎Play 2构建往往很慢,特别是在第一次推送时。后续的构建是增量的,不需要扩展编译超时时间。所以他们只是延长了我的构建时间。问题解决了! - Nunovsky
1个回答

1
我们曾经遇到过这个问题。解决方案是sbt-heroku。我们的构建时间从12分钟,失败率60%,降至不到2分钟,成功率100%。
不再有缓慢的构建!不再有失败的部署!

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接