Add dist.sh script.

This commit is contained in:
Andrey Antukh
2017-01-21 14:31:20 +01:00
parent 680fa49f27
commit 2fa169e28d
3 changed files with 13 additions and 4 deletions

2
.gitignore vendored
View File

@@ -11,6 +11,7 @@ pom.xml
node_modules
/backend/target/
/backend/resources/public/media
/backend/dist/
/frontend/target/
/frontend/dist/
/frontend/out/
@@ -20,3 +21,4 @@ node_modules
/frontend/resources/public/view
/frontend/resources/public/index.html
/media
/deploy

View File

@@ -4,6 +4,7 @@
:jvm-opts ["-Xms50m" "-Xmx200m" "-XX:+UseG1GC"]
:main ^:skip-aot uxbox.main}
:prod
{:jvm-opts ^:replace ["-Xms1g" "-Xmx1g" "-XX:+UseG1GC"
"-XX:+AggressiveOpts" "-server"]}}
:uberjar
{:jar-name "uxbox.jar"
:uberjar-name "uxbox-backend.jar"
:target-path "dist/"}}

6
backend/scripts/dist.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
DIR=`dirname $0`
LEIN="$DIR/lein"
LEIN_SNAPSHOTS_IN_RELEASE=1 $LEIN uberjar