Derek Chiang
Derek Chiang

Reputation: 3410

Is it possible to bundle a Play! application into a single executable?

I'm building an application using Scala + Play!. This is not a normal web application. Instead, it's just a software that will do something on localhost. In other words it will be distributed to multiple clients' machines. As a result, I want it to be really portable and light-weight. I don't want the clients to have to manually install Scala, Play, and JVM before they can run the program.

So my question is, is there a way to bundle a Play! application into a single executable? It doesn't really have to be just a single file, i.e. it just have to be really easy for a client with little technical knowledge to run this application easily.

Hope I'm being clear...

Thank you!

Upvotes: 1

Views: 243

Answers (2)

jsirocchi
jsirocchi

Reputation: 556

Or maybe you are just looking for a way to easily dist your application? :) have a look here: http://www.playframework.com/documentation/2.1.0/ProductionDist

This will produce a self-contained .zip file in your project's brand new dist sub directory. The only thing missing in that archive would be the JVM

Upvotes: 2

Eugene Yokota
Eugene Yokota

Reputation: 95684

You could use things like sbt-native-packager and sbt-assembly.

Upvotes: 2

Related Questions