-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgo
More file actions
executable file
·41 lines (30 loc) · 776 Bytes
/
go
File metadata and controls
executable file
·41 lines (30 loc) · 776 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
#/bin/bash
function outputBuildComment() {
echo "************************************"
echo ""
echo " " $1
echo ""
echo "************************************"
}
function clean() {
outputBuildComment "Cleaning assembly"
./sbt clean
}
function run_assembly() {
clean
outputBuildComment "Building assembly"
./sbt assembly
outputBuildComment "Running assembly"
java -jar sample-service/target/sample-service.jar server SampleServiceConfig.yml
}
function run_dev() {
outputBuildComment "Running dev"
./sbt "project sample-service" "run-main uk.gov.defra.capd.sample.SampleServiceApplication server SampleServiceConfig.yml"
}
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )"
cd $REPO_DIR
if [ "$1" = "-a" ]; then
run_assembly
else
run_dev
fi