[2.0] Play 2 Scala Console on Heroku

90 views
Skip to first unread message

James Ward

unread,
Jun 11, 2012, 12:29:57 PM6/11/12
to play-fr...@googlegroups.com
Please excuse the blog pimping here, but I thought this might be useful for a lot of you.  I've blogged about how to run the Play 2 Scala Console on Heroku:
http://www.jamesward.com/2012/06/11/play-2-scala-console-on-heroku

Let me know if you have any questions.

-James

MG

unread,
Jun 11, 2012, 8:47:07 PM6/11/12
to play-fr...@googlegroups.com
James - it is a timely post. I have been wondering how to get access to the Play console on Heroku.

The reason I want access to the Play console is to run the play clean-all command. My app's slug size is 73MB. I suspect that there are some unwanted temporary files from the days when I was using the old buildpack which did not delete some of the cache files.Is that a possibility?

Also, is this the right syntax for play clean-all on Heroku:
Heroku run play clean-all

Thanks,
MG

James Ward

unread,
Jun 12, 2012, 10:46:15 AM6/12/12
to play-fr...@googlegroups.com
Unfortunately, the console won't help with that. :(

When you push code, Heroku uses a Buildpack to compile a slug. That
slug then gets copied onto all Dynos that are allocated to an app. But
it's a one-way process. So if you want to change the slug you have to
change the build process. You can use `heroku run bash` to see exactly
what is taking up space in your slug. You could also find a way to
execute "play clean-all" or something like that from your project's SBT
build.

From the Scala Buildpack it looks like the .ivy2 cache should be
getting cleaned out if it's a Play app:
https://github.com/heroku/heroku-buildpack-scala/blob/master/bin/compile

It's a bit heavy weight but you could fork the buildpack, make some
changes, and switch to your fork.

Hope that helps.

-James
> --
> You received this message because you are subscribed to the Google
> Groups "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/pkeGTJbLpuUJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

Mohammed Guller

unread,
Jun 12, 2012, 11:14:09 AM6/12/12
to play-fr...@googlegroups.com
Thanks, James. I will try the techniques you suggested.

-MG

To post to this group, send email to play-framework@googlegroups.com.

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/play-framework?hl=en.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages