Heroku deployment of play 2.1 application very slow (region eu) Heroku deployment of play 2.1 application very slow (region eu) heroku heroku

Heroku deployment of play 2.1 application very slow (region eu)


You can potentially reduce the time of compilation by reducing what is included in the compilation of your application. You can tell the Heroku slug compiler to exclude things like docs and sources from the application slug it creates.

Heroku uses a file called .slugignore which is the same concept as the .gitignore file. Details of the .slugignore file are covered in the Slug Compiler article on Heroku Dev Center:

https://devcenter.heroku.com/articles/slug-compiler

If you are unsure as to what is actually making up your deployment, you can connect via secure shell to your running Heroku application using the command

heroku run bash

Then you can navigate around your application deployment files and folders to see if there is anything else you can remove. The Heroku Scala build pack should have removed things like the ivy cache.


Too bad, I run into the same problem. Not 100% sure, but I suspect it's one of the sbt dependencies checking causing the problem. For me, the symptom is after the 'OpenJDK install ... done' message, the next one waits for 3-5 minutes to come.