forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbt-tc
executable file
·29 lines (23 loc) · 857 Bytes
/
sbt-tc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -o xtrace
set -o nounset
set -o errexit
if [ -f "~/.sbtconfig" ]; then
. ~/.sbtconfig
fi
echo ''
echo "********************************* JAVA VERSION *********************************"
/usr/lib/jvm/java-1.8.0/bin/java -version
echo "********************************************************************************"
echo ''
export JAVA_HOME=/usr/lib/jvm/java-1.8.0/bin/java
export JDK_HOME=/usr/lib/jvm/java-1.8.0/bin/java
# NOTE this is not a REAL APP_SECRET it is just for DEV environments
fake_secret="myKV8HQkjcaxygbDuyneHBeyFgsyyM8yCFFOxyDoT0QGuyrY7IyammSyP1VivCxS"
cat /dev/null | /usr/lib/jvm/java-1.8.0/bin/java -Xmx6144M \
-XX:ReservedCodeCacheSize=128m \
-Dsbt.log.noformat=true \
-XX:+UseConcMarkSweepGC \
-DAPP_SECRET=$fake_secret \
-Duser.timezone=Australia/Sydney \
-jar `dirname $0`/dev/sbt-launch.jar "$@"