Edge provides a script for running pack to build an uberjar. To use it, you can simply run the below from your project sub-directory (the same folder as your deps.edn).

$ ../bin/onejar -A:prod --args '-m edge.main' project.jar

The -A:prod indicates an alias you would like to have its :extra-deps and :paths included in your resulting jar. --args are default arguments to your jar, in this case we are specifying that the application should run edge.main, part of the edge production modules.

You can run this jar in production quite easily:

$ java -Xmx1G -jar project.jar

It is recommended that you always specify the memory usage of your JVM process, as the defaults on Java 6 JVMs is usually insufficient for hosts running only this JVM process. A general rule of thumb is to use 2/3rds of the memory of your host.