-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo
More file actions
executable file
·32 lines (25 loc) · 751 Bytes
/
go
File metadata and controls
executable file
·32 lines (25 loc) · 751 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
#/bin/bash
function outputBuildComment() {
echo "************************************"
echo ""
echo " " $1
echo ""
echo "************************************"
}
function run_assembly() {
outputBuildComment "Building assembly"
./sbt assembly
outputBuildComment "Running assembly"
java -jar uk.gov.defra.capd.mail.service/target/uk.gov.defra.capd.mail.service-assembly-0.4-SNAPSHOT.jar server configuration/local/sendEmailServiceConfiguration.yml
}
function run_dev() {
outputBuildComment "Running dev"
./sbt "project sendmail-service" "run server configuration/local/sendEmailServiceConfiguration.yml"
}
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )"
cd $REPO_DIR
if [ "$1" = "-a" ]; then
run_assembly
else
run_dev
fi