简体   繁体   中英

Timed out compiling Play 2.x - Java app (15 minutes) | Heroku and Play Framework

I'm tryingo to deploy my app done in Play Framework 2.2.2 to Heroku using "git push heroku master". In my app directory are all the project files and directories created using play. -.idea -.idea_modules -.settings -app -conf -logs -project -public -target -test -web -build.sbt

This is what i get:

       [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'

I also don't know how to use .slugignore, where to place it, witch files are important or not.

Can someone help me? Thanks in advance!

We used to have this exact problem. The solution is sbt-heroku . Our builds went from 12 minutes, with an 60% chance of failure, to < 2 minutes, with 100% success.

No more slow builds! No more failed deployments!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM