0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Add dist.sh script.

This commit is contained in:
Andrey Antukh 2017-01-21 14:31:20 +01:00
parent 680fa49f27
commit 2fa169e28d
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
3 changed files with 13 additions and 4 deletions

4
.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/
@ -19,4 +20,5 @@ node_modules
/frontend/resources/public/js
/frontend/resources/public/view
/frontend/resources/public/index.html
/media
/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